Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Conversation

@dicej
Copy link
Contributor

@dicej dicej commented Jul 11, 2024

Whereas the existing exit function only accepts a result parameter (i.e. binary success or failure), this function allows the instance to report any status code from 0 to 255 to the host, with 0 usually meaning "success" and other values having their own meaning depending on the context.

Fixes #11

dicej added 2 commits July 11, 2024 10:59
Whereas the existing `exit` function only accepts a `result` parameter
(i.e. binary success or failure), this function allows the instance to report
any status code from 0 to 255 to the host, with 0 usually meaning "success" and
other values having their own meaning depending on the context.

Fixes WebAssembly#11

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Copy link
Member

@lukewagner lukewagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@ricochet ricochet merged commit 1d8439d into WebAssembly:main Aug 1, 2024
@dicej dicej deleted the exit-with-code branch August 1, 2024 15:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exit statuses

4 participants