Issue #1756 - Expose NumberFormat.formatToParts() to content.

This commit is contained in:
Moonchild 2021-03-31 14:45:56 +00:00 committed by roytam1
commit bdcb9cc504
4 changed files with 1 additions and 44 deletions

View file

@ -4684,11 +4684,6 @@ 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())