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

Add a reference section about unwinding and panics #76

Open
5 tasks
fitzgen opened this issue Aug 20, 2018 · 0 comments
Open
5 tasks

Add a reference section about unwinding and panics #76

fitzgen opened this issue Aug 20, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@fitzgen
Copy link
Member

fitzgen commented Aug 20, 2018

This section should:

  • Explain the current state of unwinding, ie how panic=abort is the only option.
  • Describe what "aborting" means in this context, and how it turns into a JS error, and how Drop implementations are not run.
  • Warn against the dangers of re-entering wasm after it has "aborted" due to inconsistent state from Drop impls not running.
  • Describe how JS can handle "aborts" by creating a new instance of the wasm module.
  • Briefly talk about potential future support for unwinding and link to the proposal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant