* fix(babel-parser): Move storage of expressionValue in DirectiveLiteral to main parser so it is accessible to others. Closes #13953. Reviewed by @tolmasky. * Add results from running `OVERWRITE=true yarn jest babel-parser`. Reviewed by @tolmasky.
72 lines
2.6 KiB
JSON
72 lines
2.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},
|
|
"errors": [
|
|
"SyntaxError: 'with' in strict mode. (1:29)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":43,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":43}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":1,"end":42,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":42}},
|
|
"callee": {
|
|
"type": "FunctionExpression",
|
|
"start":1,"end":40,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":40}},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":13,"end":40,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":40}},
|
|
"body": [
|
|
{
|
|
"type": "WithStatement",
|
|
"start":29,"end":38,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":38}},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"i"},
|
|
"name": "i"
|
|
},
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38}}
|
|
}
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":15,"end":28,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":28}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}},
|
|
"extra": {
|
|
"rawValue": "use strict",
|
|
"raw": "'use strict'",
|
|
"expressionValue": "use strict"
|
|
},
|
|
"value": "use strict"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |