Don't treat e, b, E, B as forbidden siblings for hex literals. (#549)

This commit is contained in:
Rick Waldron
2017-05-30 19:14:31 -04:00
committed by Brian Ng
parent 3ca75dc9ec
commit 2f5d146d54
3 changed files with 93 additions and 14 deletions

View File

@@ -0,0 +1 @@
0xBE_be_EB_eb;

View File

@@ -0,0 +1,69 @@
{
"type": "File",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"program": {
"type": "Program",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 14
}
},
"expression": {
"type": "NumericLiteral",
"start": 0,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 13
}
},
"extra": {
"rawValue": 3200183275,
"raw": "0xBE_be_EB_eb"
},
"value": 3200183275
}
}
],
"directives": []
}
}