Skip to content
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

Modules under flags should not be exposed in the REPL if the flag is not set #39911

Closed
Mesteery opened this issue Aug 27, 2021 · 0 comments
Closed
Labels
repl Issues and PRs related to the REPL subsystem.

Comments

@Mesteery
Copy link
Member

I think that (experimental) modules under flags should not be exposed in the REPL if the flag is not set.

Expected:
The --experimental-wasi-unstable-preview1 flag must be set normally for this to work.

$ node
Welcome to Node.js v16.8.0.
Type ".help" for more information.
> wasi
Uncaught ReferenceError: wasi is not defined

Currently:

$ node
Welcome to Node.js v16.8.0.
Type ".help" for more information.
> wasi
{ WASI: [class WASI] }
> (node:15508) ExperimentalWarning: WASI is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
@Mesteery Mesteery added the repl Issues and PRs related to the REPL subsystem. label Aug 28, 2021
@XadillaX XadillaX linked a pull request Aug 30, 2021 that will close this issue
@XadillaX XadillaX closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants