Bug 1288653 - Allow experimental ECMA formatToParts() in chrome r?jorendorff draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Fri, 22 Jul 2016 12:02:14 +0200
changeset 391240 cdb1b0f26fa3fe6c31fae7a25a35b57387707fef
parent 391238 fc16e59a4fe579d2870f6cb22e42602edec90cbc
child 526176 d62fd69c297852b0f8bba42f30b7bc135c214a20
push id23858
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateFri, 22 Jul 2016 10:10:43 +0000
reviewersjorendorff
bugs1288653
milestone50.0a1
Bug 1288653 - Allow experimental ECMA formatToParts() in chrome r?jorendorff MozReview-Commit-ID: DbnIVn0NUso
js/xpconnect/src/nsXPConnect.cpp
--- 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);
     }