Files
Huáng JùnliàngandGitHub 8980b4d6ac Accept bigints in t.bigIntLiteral factory (#17378)
* 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
2025-06-28 09:51:19 +02:00

37 lines
1.2 KiB
JSON

{
"type": "File",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
"errors": [
"SyntaxError: Numeric separator can not be used after leading 0. (1:2)",
"SyntaxError: Invalid BigIntLiteral. (1:0)"
],
"program": {
"type": "Program",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
"expression": {
"type": "BigIntLiteral",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
"extra": {
"rawValue": {
"$$ babel internal serialized type": "bigint",
"value": "80"
},
"raw": "08_0n"
},
"value": {
"$$ babel internal serialized type": "bigint",
"value": "80"
}
}
}
],
"directives": []
}
}