Bug 1321777 - Prepend js namespace to timezone to fix a build failure on OpenBSD. r=andrebargull
authorLandry Breuil <landry@openbsd.org>
Fri, 02 Dec 2016 03:15:00 -0500
changeset 325181 c699b4675d34796a5e338fef7a8ee17701441501
parent 325180 c7fa5ee09c1a2dbde0593ead08478fd397ba652f
child 325182 8b922bd2f864d6c850f5624f26775348becd2365
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersandrebargull
bugs1321777
milestone53.0a1
Bug 1321777 - Prepend js namespace to timezone to fix a build failure on OpenBSD. r=andrebargull
js/src/builtin/Intl.cpp
--- a/js/src/builtin/Intl.cpp
+++ b/js/src/builtin/Intl.cpp
@@ -2163,17 +2163,17 @@ js::SharedIntlData::TimeZoneHasher::matc
     if (lookup.isLatin1)
         return EqualCharsIgnoreCaseASCII(lookup.latin1Chars, keyChars, lookup.length);
     return EqualCharsIgnoreCaseASCII(keyChars, lookup.twoByteChars, lookup.length);
 }
 
 static bool
 IsLegacyICUTimeZone(const char* timeZone)
 {
-    for (const auto& legacyTimeZone : timezone::legacyICUTimeZones) {
+    for (const auto& legacyTimeZone : js::timezone::legacyICUTimeZones) {
         if (equal(timeZone, legacyTimeZone))
             return true;
     }
     return false;
 }
 
 bool
 js::SharedIntlData::ensureTimeZones(JSContext* cx)