Adds test to ensure that numericSeparator plugin does not alter "_" handling in Identifier (#548)

This commit is contained in:
Rick Waldron 2017-05-30 15:31:13 -04:00 committed by Brian Ng
parent f326ef6424
commit 3ca75dc9ec
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1 @@
_123

View File

@ -0,0 +1,66 @@
{
"type": "File",
"start": 0,
"end": 4,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4
}
},
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 4,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4
}
},
"expression": {
"type": "Identifier",
"start": 0,
"end": 4,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 4
},
"identifierName": "_123"
},
"name": "_123"
}
}
],
"directives": []
}
}