objectLitExpr.js.EXPECTED revision 562:821b0b610861
1{
2    "type": "Program",
3    "body": [
4        {
5            "type": "ExpressionStatement",
6            "expression": {
7                "type": "AssignmentExpression",
8                "operator": "=",
9                "left": {
10                    "type": "Identifier",
11                    "name": "obj"
12                },
13                "right": {
14                    "type": "ObjectExpression",
15                    "properties": []
16                }
17            }
18        }
19    ]
20}
21{
22    "type": "Program",
23    "body": [
24        {
25            "type": "ExpressionStatement",
26            "expression": {
27                "type": "AssignmentExpression",
28                "operator": "=",
29                "left": {
30                    "type": "Identifier",
31                    "name": "p"
32                },
33                "right": {
34                    "type": "ObjectExpression",
35                    "properties": [
36                        {
37                            "key": {
38                                "type": "Identifier",
39                                "name": "x"
40                            },
41                            "value": {
42                                "type": "Literal",
43                                "value": 10
44                            },
45                            "kind": "init"
46                        },
47                        {
48                            "key": {
49                                "type": "Identifier",
50                                "name": "y"
51                            },
52                            "value": {
53                                "type": "Literal",
54                                "value": 2
55                            },
56                            "kind": "init"
57                        }
58                    ]
59                }
60            }
61        }
62    ]
63}
64{
65    "type": "Program",
66    "body": [
67        {
68            "type": "ExpressionStatement",
69            "expression": {
70                "type": "AssignmentExpression",
71                "operator": "=",
72                "left": {
73                    "type": "Identifier",
74                    "name": "p"
75                },
76                "right": {
77                    "type": "ObjectExpression",
78                    "properties": [
79                        {
80                            "key": {
81                                "type": "Literal",
82                                "value": "x"
83                            },
84                            "value": {
85                                "type": "Literal",
86                                "value": 10
87                            },
88                            "kind": "init"
89                        },
90                        {
91                            "key": {
92                                "type": "Literal",
93                                "value": "y"
94                            },
95                            "value": {
96                                "type": "Literal",
97                                "value": 2
98                            },
99                            "kind": "init"
100                        }
101                    ]
102                }
103            }
104        }
105    ]
106}
107{
108    "type": "Program",
109    "body": [
110        {
111            "type": "ExpressionStatement",
112            "expression": {
113                "type": "AssignmentExpression",
114                "operator": "=",
115                "left": {
116                    "type": "Identifier",
117                    "name": "p"
118                },
119                "right": {
120                    "type": "ObjectExpression",
121                    "properties": [
122                        {
123                            "key": {
124                                "type": "Identifier",
125                                "name": "x"
126                            },
127                            "value": {
128                                "type": "FunctionExpression",
129                                "id": null,
130                                "params": [],
131                                "defaults": [],
132                                "rest": null,
133                                "body": {
134                                    "type": "BlockStatement",
135                                    "body": [
136                                        {
137                                            "type": "ReturnStatement",
138                                            "argument": {
139                                                "type": "Identifier",
140                                                "name": "xValue"
141                                            }
142                                        }
143                                    ]
144                                },
145                                "generator": false,
146                                "expression": false
147                            },
148                            "kind": "get"
149                        },
150                        {
151                            "key": {
152                                "type": "Identifier",
153                                "name": "y"
154                            },
155                            "value": {
156                                "type": "FunctionExpression",
157                                "id": null,
158                                "params": [],
159                                "defaults": [],
160                                "rest": null,
161                                "body": {
162                                    "type": "BlockStatement",
163                                    "body": [
164                                        {
165                                            "type": "ReturnStatement",
166                                            "argument": {
167                                                "type": "Identifier",
168                                                "name": "yValue"
169                                            }
170                                        }
171                                    ]
172                                },
173                                "generator": false,
174                                "expression": false
175                            },
176                            "kind": "get"
177                        }
178                    ]
179                }
180            }
181        }
182    ]
183}
184