* 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.
30 lines
940 B
JSON
30 lines
940 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
|
|
"errors": [
|
|
"SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences. (1:4)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [],
|
|
"directives": [
|
|
{
|
|
"type": "Directive",
|
|
"start":0,"end":8,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":8}},
|
|
"value": {
|
|
"type": "DirectiveLiteral",
|
|
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},
|
|
"extra": {
|
|
"rawValue": "\\x1_0",
|
|
"raw": "\"\\x1_0\"",
|
|
"expressionValue": "\u00010"
|
|
},
|
|
"value": "\\x1_0"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |