Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime (scheduler/wasm): implement JS exit handling #3430

Draft
wants to merge 1 commit into
base: release
Choose a base branch
from

Conversation

niaow
Copy link
Member

@niaow niaow commented Feb 4, 2023

This change resolves the go.run promise when main returns or syscall.Exit is called. It forces the exit by throwing an exception from within proc_exit, which is then caught outside wasm.

TODO: update browser testing code to use the promise.

Related to #3422

This change resolves the go.run promise when main returns or syscall.Exit is called.
It forces the exit by throwing an exception from within proc_exit, which is then caught outside wasm.
@niaow niaow added the wasm WebAssembly label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant