Bug 1288653 - Allow experimental ECMA formatToParts() in chrome r?jorendorff
MozReview-Commit-ID: DbnIVn0NUso
--- a/js/xpconnect/src/nsXPConnect.cpp
+++ b/js/xpconnect/src/nsXPConnect.cpp
@@ -433,21 +433,19 @@ InitGlobalObjectOptions(JS::CompartmentO
bool extraWarningsForSystemJS = ExtraWarningsForSystemJS();
bool isSystem = nsContentUtils::IsSystemPrincipal(aPrincipal);
if (isSystem) {
// Make sure [SecureContext] APIs are visible:
aOptions.creationOptions().setSecureContext(true);
-#if 0 // TODO: Reenable in Bug 1288653
// Enable the ECMA-402 experimental formatToParts in any chrome page
aOptions.creationOptions()
.setExperimentalDateTimeFormatFormatToPartsEnabled(true);
-#endif
}
if (shouldDiscardSystemSource) {
bool discardSource = isSystem;
aOptions.behaviors().setDiscardSource(discardSource);
}