swc/crates/swc_ecma_parser/tests/tsc/parser.numericSeparators.octal.json

84 lines
1.4 KiB
JSON

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