Skip to content

Commit c767894

Browse files
committed
WASM: Supply wasi flag when executing the generated wasm
1 parent 37918fa commit c767894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/lpython.cpp

Lines changed: 1 addition & 1 deletion
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)