diff --git a/src/wasi.ts b/src/wasi.ts index b13ff02..b4e5047 100644 --- a/src/wasi.ts +++ b/src/wasi.ts @@ -30,6 +30,7 @@ export default class WASI { this.inst = instance; try { instance.exports._start(); + return 0; } catch (e) { if (e instanceof WASIProcExit) { return e.code;