diff options
Diffstat (limited to 'js/src/shell/js.cpp')
-rw-r--r-- | js/src/shell/js.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 6e155d3ff6..088551c302 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -4684,6 +4684,11 @@ NewGlobal(JSContext* cx, unsigned argc, Value* vp) if (v.isBoolean()) creationOptions.setCloneSingletons(v.toBoolean()); + if (!JS_GetProperty(cx, opts, "experimentalNumberFormatFormatToPartsEnabled", &v)) + return false; + if (v.isBoolean()) + creationOptions.setExperimentalNumberFormatFormatToPartsEnabled(v.toBoolean()); + if (!JS_GetProperty(cx, opts, "sameZoneAs", &v)) return false; if (v.isObject()) |