Sandbox node graph execution on native targets and attempt recovery from panics on Wasm (#1846)

* Test out wasm unwinding

* Implement panic catching for native targets

* Hack in support for recovering panics in wasm

* Keep debug info in release builds

* Check for DynAnyNode in Backtrace because that can't be inlined as well

* Improve error dialog

* Use a mutex for storing the frontend state instead of a RefCell

* Code review

* Update crash text

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Dennis Kobert
2024-07-28 16:46:44 -07:00
committed by GitHub
co-authored by Keavon Chambers
parent 06177597ae
commit 5b1d3a0ae4
8 changed files with 110 additions and 46 deletions
+4 -1
View File
@@ -52,6 +52,9 @@ web-sys = { workspace = true, features = [
# Optional workspace dependencies
ron = { workspace = true, optional = true }
[profile.release]
debug = true
[package.metadata.wasm-pack.profile.dev]
wasm-opt = false
@@ -61,7 +64,7 @@ demangle-name-section = true
dwarf-debug-info = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Os"]
wasm-opt = ["-Os", "-g"]
[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false