-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
383: Hook up wasi exit code to wasmer cli r=lachlansneff a=lachlansneff Test by running: ``` > target/release/wasmer run examples/exit.wat > echo $? ``` should echo "7". Fixes (at least the exit code part) of #361. Co-authored-by: Lachlan Sneff <[email protected]>
- Loading branch information
Showing
4 changed files
with
84 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(module | ||
(import "wasi_unstable" "proc_exit" (func $proc_exit (param i32))) | ||
(export "_start" (func $_start)) | ||
|
||
(memory 10) | ||
(export "memory" (memory 0)) | ||
|
||
(func $_start | ||
(call $proc_exit (i32.const 7)) | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters