Update to SpiderMonkey 137. (#37077)

Incorporates the updates from https://github.com/servo/mozjs/pull/584.

Testing: Existing WPT coverage is enough.
Fixes: Part of #36258

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-08-07 12:47:27 -04:00 committed by GitHub
parent fd20a5df42
commit 842dd99698
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 129 additions and 1417 deletions

View file

@ -31,7 +31,7 @@ use ipc_channel::ipc::{self, IpcSender};
use ipc_channel::router::ROUTER;
use js::glue::{IsWrapper, UnwrapObjectDynamic};
use js::jsapi::{
Compile1, CurrentGlobalOrNull, GetNonCCWObjectGlobal, HandleObject, Heap,
Compile1, CurrentGlobalOrNull, DelazificationOption, GetNonCCWObjectGlobal, HandleObject, Heap,
InstantiateGlobalStencil, InstantiateOptions, JSContext, JSObject, JSScript, SetScriptPrivate,
};
use js::jsval::{PrivateValue, UndefinedValue};
@ -2820,6 +2820,7 @@ impl GlobalScope {
skipFilenameValidation: false,
hideScriptFromDebugger: false,
deferDebugMetadata: false,
eagerDelazificationStrategy_: DelazificationOption::OnDemandOnly,
};
let script = InstantiateGlobalStencil(
*cx,