Skip to content

Commit fe07cbc

Browse files
authored
Merge pull request #1597 from Shaikh-Ubaid/wasi_not_found
WASM: Supply wasi flag when executing the generated wasm
2 parents 30bd056 + c767894 commit fe07cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/lpython.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ int main(int argc, char *argv[])
17211721

17221722
if (compiler_options.arg_o == "") {
17231723
if (backend == Backend::wasm) {
1724-
err = system(("node " + outfile +".js").c_str());
1724+
err = system(("node --experimental-wasi-unstable-preview1 " + outfile +".js").c_str());
17251725
} else {
17261726
if (compiler_options.platform == LCompilers::Platform::Windows) {
17271727
return system(outfile.c_str());

0 commit comments

Comments
 (0)