You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Darwin DESKTOP-239BQMO.corp.microsoft.com 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 x86_64
Subsystem
No response
What steps will reproduce the bug?
Start node repl with experimental top level await node --experimental-repl-await
Run the following code in the REPL foo(); const x = await Promise.resolve(1); function foo() { console.log('Do Something');}
The following error is displayed
Uncaught TypeError: foo is not a function
at REPL1:1:32
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Function foo should be hoisted and available.
What do you see instead?
Repl errors out.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
16.5.0
Platform
Darwin DESKTOP-239BQMO.corp.microsoft.com 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 x86_64
Subsystem
No response
What steps will reproduce the bug?
node --experimental-repl-await
foo(); const x = await Promise.resolve(1); function foo() { console.log('Do Something');}
The following error is displayed
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Function
foo
should be hoisted and available.What do you see instead?
Repl errors out.
Additional information
No response
The text was updated successfully, but these errors were encountered: