tor-browser

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

commit 21911bcc053e1f7d2a411a461260f4eb99ee7c17
parent 902433d0875dfe09025b6db82accbd2c358735d1
Author: Bryan Thrall <bthrall@mozilla.com>
Date:   Fri, 19 Dec 2025 16:59:48 +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 @@ -1761,9 +1761,6 @@ AutoUnsafeCallWithABI::AutoUnsafeCallWithABI(UnsafeABIStrictness strictness) case UnsafeABIStrictness::AllowPendingExceptions: checkForPendingException_ = !JS_IsExceptionPending(cx_); break; - case UnsafeABIStrictness::AllowThrownExceptions: - checkForPendingException_ = false; - break; } cx_->hasAutoUnsafeCallWithABI = true; diff --git a/js/src/vm/JSContext.h b/js/src/vm/JSContext.h @@ -1239,11 +1239,7 @@ class MOZ_RAII AutoSetBypassCSPForDebugger { ~AutoSetBypassCSPForDebugger() { cx->bypassCSPForDebugger = oldValue; } }; -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