-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.
Description
Version
16.8.0
Platform
No response
Subsystem
repl
What steps will reproduce the bug?
$ node
Welcome to Node.js v16.8.0.
Type ".help" for more information.
> await '๐๐๐' // or
> await '๐๐๐'; // or
> await '๐๐๐';;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?
> await '๐๐๐'
'๐๐๐'What do you see instead?
> await '๐๐๐'
}))()
^
Uncaught SyntaxError: Unexpected token '}'
> await '๐๐๐';
(async () => { return (await '๐๐๐';
^
Uncaught SyntaxError: Unexpected token ';'
> await '๐๐๐';;
undefinedAdditional information
This is obviously reproducible with a more complex expression (for example await new buffer.Blob(['aaa', Buffer.from('รจรจee๐๐๐aaa')]).text().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.replIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.