Commit 5d2ae05
wasi: require CLI flag to require() wasi module
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
#30778.
PR-URL: #30963
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>1 parent f6acf9a commit 5d2ae05Copy full SHA for 5d2ae05
File tree
Expand file treeCollapse file tree
3 files changed
+14
-5
lines changedOpen diff view settings
Filter options
- lib/internal/bootstrap
- src
- test/wasi
Expand file treeCollapse file tree
3 files changed
+14
-5
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/pre_execution.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/pre_execution.js+4-5Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
402 | 402 | |
403 | 403 | |
404 | 404 | |
405 | | - |
406 | | - |
407 | | - |
408 | | - |
409 | | - |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
410 | 409 | |
411 | 410 | |
412 | 411 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
98 | 98 | |
99 | 99 | |
100 | 100 | |
| 101 | + |
101 | 102 | |
102 | 103 | |
103 | 104 | |
|
Collapse file
test/wasi/test-wasi-require-flag.js
Copy file name to clipboard+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
0 commit comments