tor-browser

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

commit b755d91bc56c7fff6d9788ab831c4c294c54e894
parent 8bc2dbb0bab4742d3e70f6bb8eab1b4c15d75b23
Author: Matthew Gaudet <mgaudet@mozilla.com>
Date:   Wed, 15 Oct 2025 15:10:51 +0000

Bug 1994298 - Remove IsJSMicroTask handle, not needed r=arai

The function can't GC.

Differential Revision: https://phabricator.services.mozilla.com/D268610

Diffstat:
Mjs/public/friend/MicroTask.h | 2+-
Mjs/src/builtin/Promise.cpp | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/public/friend/MicroTask.h b/js/public/friend/MicroTask.h @@ -61,7 +61,7 @@ namespace JS { // sees fit. using MicroTask = JS::Value; -JS_PUBLIC_API bool IsJSMicroTask(Handle<JS::Value> hv); +JS_PUBLIC_API bool IsJSMicroTask(const JS::Value& hv); // Run a MicroTask that is known to be a JS MicroTask. This will crash // if provided an invalid task kind. diff --git a/js/src/builtin/Promise.cpp b/js/src/builtin/Promise.cpp @@ -7821,7 +7821,7 @@ JS_PUBLIC_API bool JS::GetFlowIdFromJSMicroTask(const MicroTask& entry, return true; } -JS_PUBLIC_API bool JS::IsJSMicroTask(Handle<JS::Value> hv) { +JS_PUBLIC_API bool JS::IsJSMicroTask(const JS::Value& hv) { if (!hv.isObject()) { return false; }