* fix(babel-parser) better error message for missing number exponent after 'e' * fix(babel-parser) requested changes * msg Co-authored-by: Brian Ng <bng412@gmail.com>
29 lines
859 B
JSON
29 lines
859 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}},
|
|
"errors": [
|
|
"SyntaxError: Floating-point numbers require a valid exponent after the 'e' (1:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}},
|
|
"extra": {
|
|
"rawValue": 3,
|
|
"raw": "3e"
|
|
},
|
|
"value": 3
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |