commit 644f0db17749554fe23a45b43e77e61f42acdfd9
parent 959de40681ae878815a0db8f4ff5de226f423ac4
Author: Jon Coppeard <jcoppeard@mozilla.com>
Date: Tue, 14 Oct 2025 06:49:21 +0000
Bug 1966745 - Part 2: Enable symbols as weakmap keys by default r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D268377
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp
@@ -13238,7 +13238,7 @@ bool SetGlobalOptionsPreJSInit(const OptionParser& op) {
JS::Prefs::set_experimental_error_iserror(true);
}
- bool symbolsAsWeakMapKeys = false;
+ bool symbolsAsWeakMapKeys = true;
if (op.getBoolOption("enable-symbols-as-weakmap-keys")) {
symbolsAsWeakMapKeys = true;
}
diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
@@ -8993,7 +8993,7 @@
# Experimental support for Symbols as WeakMap keys in JavaScript.
- name: javascript.options.experimental.symbols_as_weakmap_keys
type: bool
- value: false
+ value: true
mirror: always
set_spidermonkey_pref: startup