swc/crates/swc_ecma_parser/tests/tsc/parser.numericSeparators.octal.json
2022-04-05 12:46:35 +00:00

84 lines
1.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 41,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"value": 9.0,
"raw": "0o00_11"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 9,
"end": 15,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 9,
"end": 14,
"ctxt": 0
},
"value": 1.0,
"raw": "0O0_1"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 16,
"end": 28,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 16,
"end": 27,
"ctxt": 0
},
"value": 2359305.0,
"raw": "0o1100_0011"
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 29,
"end": 41,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 40,
"ctxt": 0
},
"value": 36929.0,
"raw": "0O0_11_0101"
}
}
],
"interpreter": null
}