You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Emscripten-EH] Move JS unwinding implementation to src/lib/libunwind.js
Extract `_Unwind_*` functions and `uncaughtExceptionCount` /
`exceptionLast` JS state from libcore.js and libexceptions.js into a
dedicated `libunwind.js`.
This new libunwind.js is included as long as wasm EH is not being
used.
Also, invert the dependency between `__cxa_throw` and
`_Unwind_RaiseException` so that `__cxa_throw` now calls
`_Unwind_RaiseException` rather than the other way around. This is
important as it allows C programs (or rather non-C++ programs like Rust) to
call `_Unwind_RaiseException` without linking as C++.
Inspired by #27496
0 commit comments