tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5a1f649191a902e103679b4edec73a7d7f5d4999
parent 4f122ff84138a07a04e912280e0dda1b3f4b4b1c
Author: Bryan Thrall <bthrall@mozilla.com>
Date:   Wed, 12 Nov 2025 22:02:51 +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:
Mjs/src/vm/JSContext.cpp | 3---
Mjs/src/vm/JSContext.h | 6+-----
2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/js/src/vm/JSContext.cpp b/js/src/vm/JSContext.cpp @@ -1767,9 +1767,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 @@ -1210,11 +1210,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