Open
Description
Version
v19.7.0
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
$ node
> {})
({}))
^
Uncaught SyntaxError: Unexpected token ')'
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
> {})
{})
^
Uncaught SyntaxError: Unexpected token ')'
What do you see instead?
> {})
({}))
^
Uncaught SyntaxError: Unexpected token ')'
Additional information
We got similar result with expression {}]