Huáng Jùnliàng dc7c5640e9
Compact parser fixture loc info (#11322)
* chore: compact loc information in parser fixtures

* chore: update test fixtures
2020-03-23 20:10:29 -04:00

76 lines
2.6 KiB
JSON

{
"type": "File",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
"errors": [
"SyntaxError: Redefinition of __proto__ property (1:19)"
],
"program": {
"type": "Program",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},
"expression": {
"type": "ObjectExpression",
"start":1,"end":33,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":33}},
"properties": [
{
"type": "ObjectProperty",
"start":3,"end":17,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":17}},
"method": false,
"key": {
"type": "StringLiteral",
"start":3,"end":14,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":14}},
"extra": {
"rawValue": "__proto__",
"raw": "'__proto__'"
},
"value": "__proto__"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":16,"end":17,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
{
"type": "ObjectProperty",
"start":19,"end":31,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":31}},
"method": false,
"key": {
"type": "Identifier",
"start":19,"end":28,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":28},"identifierName":"__proto__"},
"name": "__proto__"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start":30,"end":31,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":31}},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
}
],
"directives": []
}
}