Skip to content

Commit 28bb7f2

Browse files
Exit process when proc_exit is called on Node.js WASI
because Node.js's WASI implementatin does't supprot proc_exit in async reactor model. See https://github.com/nodejs/node/blob/2a4452a53af65a13db4efae474162a7dcfd38dd5/lib/wasi.js#L121
1 parent eb9d9f2 commit 28bb7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: IntegrationTests/lib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const WASI = {
6363
const wasi = new NodeWASI({
6464
args: [programName],
6565
env: {},
66-
returnOnExit: true,
66+
returnOnExit: false,
6767
})
6868

6969
return {

0 commit comments

Comments
 (0)