mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
1331064 - Assertion failure: throwing, at js/src/jscntxt.cpp:946 with wasm and Debugger
1331064 - Ignore wasm onExceptionUnwind events in JSTRAP_ERROR state.
This commit is contained in:
parent
dc516e0658
commit
f8d18b97b1
1 changed files with 10 additions and 6 deletions
|
|
@ -142,12 +142,16 @@ WasmHandleThrow()
|
|||
|
||||
DebugFrame* frame = iter.debugFrame();
|
||||
|
||||
JSTrapStatus status = Debugger::onExceptionUnwind(cx, frame);
|
||||
if (status == JSTRAP_RETURN) {
|
||||
// Unexpected trap return -- raising error since throw recovery
|
||||
// is not yet implemented in the wasm baseline.
|
||||
// TODO properly handle JSTRAP_RETURN and resume wasm execution.
|
||||
JS_ReportErrorASCII(cx, "Unexpected resumption value from onExceptionUnwind");
|
||||
// Assume JSTRAP_ERROR status if no exception is pending --
|
||||
// no onExceptionUnwind handlers must be fired.
|
||||
if (cx->isExceptionPending()) {
|
||||
JSTrapStatus status = Debugger::onExceptionUnwind(cx, frame);
|
||||
if (status == JSTRAP_RETURN) {
|
||||
// Unexpected trap return -- raising error since throw recovery
|
||||
// is not yet implemented in the wasm baseline.
|
||||
// TODO properly handle JSTRAP_RETURN and resume wasm execution.
|
||||
JS_ReportErrorASCII(cx, "Unexpected resumption value from onExceptionUnwind");
|
||||
}
|
||||
}
|
||||
|
||||
bool ok = Debugger::onLeaveFrame(cx, frame, nullptr, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue