Skip to content

wasi: require CLI flag to require() wasi module

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/require-wasi into master

This commit ensures that the WASI module cannot be require()'ed without a CLI flag while the module is still experimental.

This fixes a regression from https://github.com/nodejs/node/pull/30778.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading