-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
await
an expression with surrogate characters raises a SyntaxError
#39929
Labels
Comments
@nodejs/repl |
Mesteery
added a commit
to Mesteery/node
that referenced
this issue
Aug 29, 2021
By the way there is another unrelated bug: > await 1;;
undefined
> 1;;
1 |
@Mesteery I think it is a seperate issue. it would be worth to open a new issue. 🤔 |
the infinite stream of bugs for fake tla is even better than I thought it would be |
Mesteery
changed the title
Aug 29, 2021
await
an expression with at least 3 surrogate characters raises a SyntaxError
await
an expression with surrogate characters raises a SyntaxError
Mesteery
added a commit
to Mesteery/node
that referenced
this issue
Aug 29, 2021
BethGriggs
pushed a commit
that referenced
this issue
Sep 21, 2021
Fixes: #39929 PR-URL: #39931 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Shingo Inoue <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Version
16.8.0
Platform
No response
Subsystem
repl
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
All the time, as long as there is a top level await with one or more surrogate chars with a semicolon, or at least 3 surrogate chars.
What is the expected behavior?
What do you see instead?
Additional information
This is obviously reproducible with a more complex expression (for example
await new buffer.Blob(['aaa', Buffer.from('èèee😁😁😁aaa')]).text()
.The text was updated successfully, but these errors were encountered: