Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jul 26, 2022
1 parent 02df091 commit 229cc50
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
@@ -0,0 +1,3 @@
`
\u{12_34}
`;
@@ -0,0 +1,36 @@
{
"type": "File",
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":14}},
"errors": [
"SyntaxError: Numeric separators are not allowed inside unicode escape sequences or hex escape sequences. (1:7)"
],
"program": {
"type": "Program",
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":14}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":14}},
"expression": {
"type": "TemplateLiteral",
"start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":13}},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"start":1,"end":12,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":3,"column":0,"index":12}},
"value": {
"raw": "\n\\u{12_34}\n",
"cooked": "\n\n"
},
"tail": true
}
]
}
}
],
"directives": []
}
}

0 comments on commit 229cc50

Please sign in to comment.