test/script/basic/parser/objectLitExpr.js.EXPECTED

Print this page




 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": {
 130                                     "type": "Identifier",
 131                                     "name": "get x"
 132                                 },
 133                                 "params": [],
 134                                 "defaults": [],
 135                                 "rest": null,
 136                                 "body": {
 137                                     "type": "BlockStatement",
 138                                     "body": [
 139                                         {
 140                                             "type": "ReturnStatement",
 141                                             "argument": {
 142                                                 "type": "Identifier",
 143                                                 "name": "xValue"
 144                                             }
 145                                         }
 146                                     ]
 147                                 },
 148                                 "generator": false,
 149                                 "expression": false
 150                             },
 151                             "kind": "get"
 152                         },
 153                         {
 154                             "key": {
 155                                 "type": "Identifier",
 156                                 "name": "y"
 157                             },
 158                             "value": {
 159                                 "type": "FunctionExpression",
 160                                 "id": {
 161                                     "type": "Identifier",
 162                                     "name": "get y"
 163                                 },
 164                                 "params": [],
 165                                 "defaults": [],
 166                                 "rest": null,
 167                                 "body": {
 168                                     "type": "BlockStatement",
 169                                     "body": [
 170                                         {
 171                                             "type": "ReturnStatement",
 172                                             "argument": {
 173                                                 "type": "Identifier",
 174                                                 "name": "yValue"
 175                                             }
 176                                         }
 177                                     ]
 178                                 },
 179                                 "generator": false,
 180                                 "expression": false
 181                             },
 182                             "kind": "get"
 183                         }


 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                         }