Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disallow surrogate in the end of contextual name (#13377)
- Loading branch information
Showing
3 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...parser/test/fixtures/es2017/async-functions/async-function-and-non-bmp-character/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
async function饾惉 f() {} |
56 changes: 56 additions & 0 deletions
56
...ser/test/fixtures/es2017/async-functions/async-function-and-non-bmp-character/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"type": "File", | ||
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, | ||
"errors": [ | ||
"SyntaxError: Missing semicolon. (1:5)", | ||
"SyntaxError: Missing semicolon. (1:16)", | ||
"SyntaxError: Missing semicolon. (1:20)" | ||
], | ||
"program": { | ||
"type": "Program", | ||
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}}, | ||
"sourceType": "script", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "ExpressionStatement", | ||
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}, | ||
"expression": { | ||
"type": "Identifier", | ||
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5},"identifierName":"async"}, | ||
"name": "async" | ||
} | ||
}, | ||
{ | ||
"type": "ExpressionStatement", | ||
"start":6,"end":16,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":16}}, | ||
"expression": { | ||
"type": "Identifier", | ||
"start":6,"end":16,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":16},"identifierName":"function饾惉"}, | ||
"name": "function饾惉" | ||
} | ||
}, | ||
{ | ||
"type": "ExpressionStatement", | ||
"start":17,"end":20,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":20}}, | ||
"expression": { | ||
"type": "CallExpression", | ||
"start":17,"end":20,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":20}}, | ||
"callee": { | ||
"type": "Identifier", | ||
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18},"identifierName":"f"}, | ||
"name": "f" | ||
}, | ||
"arguments": [] | ||
} | ||
}, | ||
{ | ||
"type": "BlockStatement", | ||
"start":21,"end":23,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":23}}, | ||
"body": [], | ||
"directives": [] | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |