| 1 | function Component({a, b, c}) { |
| 2 | // This is an object version of array-access-assignment.js |
| 3 | // Meant to confirm that object expressions and PropertyStore/PropertyLoad with strings |
| 4 | // works equivalently to array expressions and property accesses with numeric indices |
| 5 | const x = {zero: a}; |
| 6 | const y = {zero: null, one: b}; |
| 7 | const z = {zero: {}, one: {}, two: {zero: c}}; |
| 8 | x.zero = y.one; |
| 9 | z.zero.zero = x.zero; |
| 10 | return {zero: x, one: z}; |
| 11 | } |
| 12 | |
| 13 | export const FIXTURE_ENTRYPOINT = { |
| 14 | fn: Component, |
| 15 | params: [{a: 1, b: 20, c: 300}], |
| 16 | sequentialRenders: [ |
| 17 | {a: 2, b: 20, c: 300}, |
| 18 | {a: 3, b: 20, c: 300}, |
| 19 | {a: 3, b: 21, c: 300}, |
| 20 | {a: 3, b: 22, c: 300}, |
| 21 | {a: 3, b: 22, c: 301}, |
| 22 | ], |
| 23 | }; |