-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
wasi
incorrectly defined on global
#45560
Comments
I'm not sure exactly what you're reporting here. The wasi module is only available if you start Node with |
@cjihrig I mean even if I didn't start node with |
Is this in the REPL only? |
Oh yes in repl only, sorry. |
I'm going to reopen. Even though it's just in the REPL, we should fix this. |
#39911 (released in v16.10.0) fixed not to load wasi module when the flag is not set, but |
Version
v18.12.1
Platform
Linux - 5.4.190-107.353.amzn2.x86_6
Subsystem
wasi global
What steps will reproduce the bug?
global.wasi
Uncaught Error: Cannot find module 'wasi'
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
global.wasi
evaluates to undefined;What do you see instead?
Uncaught Error: Cannot find module 'wasi'
forglobal.wasi
Additional information
--experimental-wasi-unstable-preview1
not specifiedThe text was updated successfully, but these errors were encountered: