Commit d68b648
Add dbg_node_fs/dbg_node_utils declarations to shell_minimal.js
runtime_debug.js references dbg_node_fs and dbg_node_utils when
ENVIRONMENT_MAY_BE_NODE with PTHREADS or WASM_WORKERS, but these
variables were only declared in shell.js, not in shell_minimal.js.
This caused Closure compiler to fail with JSC_UNDEFINED_VARIABLE
for MINIMAL_RUNTIME builds with threading and --closure=1.
Add the declarations for both paths:
- PTHREADS: inside the existing if(ENVIRONMENT_IS_NODE) block that
already imports fs
- WASM_WORKERS without PTHREADS: in a new conditional block1 parent 2cd89c3 commit d68b648
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
118 | 133 | | |
119 | 134 | | |
120 | 135 | | |
| |||
0 commit comments