commit 1131839caa75339b375d8997ae46840a69aa4f78
parent 51f685e3a63038eb4b7550d1e11194ec8eab0ce2
Author: Bryan Thrall <bthrall@mozilla.com>
Date: Mon, 3 Nov 2025 21:01:30 +0000
Bug 1989115 - Remove UnsafeABIStrictness::AllowThrownExceptions r=mgaudet
It is unused and it would complicate how we capture OOM stack traces if we had
to handle this case.
Differential Revision: https://phabricator.services.mozilla.com/D268762
Diffstat:
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/js/src/vm/JSContext.cpp b/js/src/vm/JSContext.cpp
@@ -1747,9 +1747,6 @@ AutoUnsafeCallWithABI::AutoUnsafeCallWithABI(UnsafeABIStrictness strictness)
case UnsafeABIStrictness::AllowPendingExceptions:
checkForPendingException_ = !JS_IsExceptionPending(cx_);
break;
- case UnsafeABIStrictness::AllowThrownExceptions:
- checkForPendingException_ = false;
- break;
}
#endif
diff --git a/js/src/vm/JSContext.h b/js/src/vm/JSContext.h
@@ -1194,11 +1194,7 @@ class MOZ_RAII AutoNoteExclusiveDebuggerOnEval {
}
};
-enum UnsafeABIStrictness {
- NoExceptions,
- AllowPendingExceptions,
- AllowThrownExceptions
-};
+enum UnsafeABIStrictness { NoExceptions, AllowPendingExceptions };
// Should be used in functions called directly from JIT code (with
// masm.callWithABI). This assert invariants in debug builds. Resets