mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* breaking: store BigIntLiteral#value as bigint * update babel-types test cases * update babel-parser test fixtures * feat: support bigint and deprecate string in the bigIntLiteral builder * make node 8 happy * update NodePart typing * address review comments
30 lines
908 B
JSON
30 lines
908 B
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
|
|
"errors": [
|
|
"SyntaxError: Invalid BigIntLiteral. (1:0)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
|
|
"expression": {
|
|
"type": "BigIntLiteral",
|
|
"start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
|
|
"extra": {
|
|
"rawValue": null,
|
|
"raw": "2e9n"
|
|
},
|
|
"value": null
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|