Destructuring assignment in REPL throws Uncaught TypeError: Cannot read properties of undefined (reading 'type')
#53328
Labels
repl
Issues and PRs related to the REPL subsystem.
Version
20.12.1
Platform
Darwin arm64
Subsystem
No response
What steps will reproduce the bug?
Start the REPL with
node
, then run this line:How often does it reproduce? Is there a required condition?
100%
What is the expected behaviour? Why is that the expected behaviour?
No error should be thrown.
What do you see instead?
The following error:
Additional information
The issue is related to how the REPL handles top-level await.
The text was updated successfully, but these errors were encountered: