diff --git a/js/src/jit-test/tests/basic/bug-1649234-1.js b/js/src/jit-test/tests/basic/bug-1649234-1.js deleted file mode 100644 index 06e8a44fd6a5..000000000000 --- a/js/src/jit-test/tests/basic/bug-1649234-1.js +++ /dev/null @@ -1,8 +0,0 @@ -// |jit-test| exitstatus: 6; - -timeout(0.1, function() { return false; }); -Atomics.add(new Int32Array(1), 0, { - valueOf() { - while (1); - } -}); diff --git a/js/src/jit-test/tests/basic/bug-1649234-2.js b/js/src/jit-test/tests/basic/bug-1649234-2.js deleted file mode 100644 index 93603bab21a4..000000000000 --- a/js/src/jit-test/tests/basic/bug-1649234-2.js +++ /dev/null @@ -1,4 +0,0 @@ -// |jit-test| exitstatus: 6; - -setInterruptCallback(() => false); -0n == {valueOf() { interruptIf(true); }}; diff --git a/js/src/jit-test/tests/basic/bug-1649234-3.js b/js/src/jit-test/tests/basic/bug-1649234-3.js deleted file mode 100644 index 0af0296c487e..000000000000 --- a/js/src/jit-test/tests/basic/bug-1649234-3.js +++ /dev/null @@ -1,14 +0,0 @@ -// |jit-test| exitstatus: 3; - -let debuggerRealm = newGlobal({newCompartment: true}); -debuggerRealm.debuggee = this; -debuggerRealm.eval(` - let dbg = new Debugger(debuggee); - dbg.onDebuggerStatement = (frame) => null; // terminate the debuggee -`); - -Atomics.add(new Int32Array(1), 0, { - valueOf() { - debugger; - } -}); diff --git a/js/src/vm/JSContext.cpp b/js/src/vm/JSContext.cpp index cec4d361e4fd..1d4ee7094ae8 100644 --- a/js/src/vm/JSContext.cpp +++ b/js/src/vm/JSContext.cpp @@ -865,6 +865,11 @@ mozilla::GenericErrorResult JSContext::alreadyReportedOOM() { } mozilla::GenericErrorResult JSContext::alreadyReportedError() { +#ifdef DEBUG + if (!isHelperThreadContext()) { + MOZ_ASSERT(isExceptionPending()); + } +#endif return mozilla::Err(JS::Error()); }