forked from wasmerio/wasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hook up wasi exit code to wasmer cli
- Loading branch information
1 parent
b7f98c8
commit 76f4798
Showing
2 changed files
with
82 additions
and
48 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
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