mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +03:00
542076d658
This commit updates the drop glue generated for closures to simply ignore null pointers. The drop glue can be called in erroneous situations such as when a closure is invoked after it's been destroyed. In these cases we don't want to segfault and/or corrupt memory but instead let the normal error message from the invoke glue continue to get propagated. Closes #1526 |
||
---|---|---|
.. | ||
crates | ||
headless | ||
no-std | ||
wasm | ||
non_wasm.rs | ||
std-crate-no-std-dep.rs | ||
unwrap_throw.rs |