issues
search
rustwasm
/
book
The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k
stars
211
forks
source link
Add a reference section about unwinding and panics
#76
Open
fitzgen
opened
6 years ago
fitzgen
commented
6 years ago
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.
This section should:
panic=abort
is the only option.Drop
implementations are not run.Drop
impls not running.