* docs: add DecimalLiteral to AST spec * add decimal support * fix: throw invalid decimal on start * add DecimalLiteral type definitions * update parser typings * add generator support * add syntax-decimal plugin * Add syntax-decimal to babel-standalone * add syntax-decimal to missing plugin helpers * fix incorrect test macro
29 lines
823 B
JSON
29 lines
823 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}},
|
|
"errors": [
|
|
"SyntaxError: Invalid decimal (1:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}},
|
|
"expression": {
|
|
"type": "DecimalLiteral",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":4}},
|
|
"extra": {
|
|
"rawValue": "2e9",
|
|
"raw": "2e9m"
|
|
},
|
|
"value": "2e9"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |