Index: src/js/i18n.js |
diff --git a/src/js/i18n.js b/src/js/i18n.js |
index 2e865906f2031c40dc4926eb3d6bced548a808cc..5dcf4db1ec46947233fe3f7ee5f6723a4421111a 100644 |
--- a/src/js/i18n.js |
+++ b/src/js/i18n.js |
@@ -34,7 +34,6 @@ var OverrideFunction = utils.OverrideFunction; |
var patternSymbol = utils.ImportNow("intl_pattern_symbol"); |
var resolvedSymbol = utils.ImportNow("intl_resolved_symbol"); |
var SetFunctionName = utils.SetFunctionName; |
-var StringIndexOf; |
var StringSubstr; |
var StringSubstring; |
@@ -43,7 +42,6 @@ utils.Import(function(from) { |
ArrayPush = from.ArrayPush; |
InternalRegExpMatch = from.InternalRegExpMatch; |
InternalRegExpReplace = from.InternalRegExpReplace; |
- StringIndexOf = from.StringIndexOf; |
StringSubstr = from.StringSubstr; |
StringSubstring = from.StringSubstring; |
}); |
@@ -834,7 +832,7 @@ function isStructuallyValidLanguageTag(locale) { |
} |
// Just return if it's a x- form. It's all private. |
- if (%_Call(StringIndexOf, locale, 'x-') === 0) { |
+ if (%StringIndexOf(locale, 'x-', 0) === 0) { |
return true; |
} |
@@ -2099,7 +2097,7 @@ function LocaleConvertCase(s, locales, isToUpper) { |
} |
// StringSplit is slower than this. |
- var pos = %_Call(StringIndexOf, language, '-'); |
+ var pos = %StringIndexOf(language, '-', 0); |
if (pos != -1) { |
language = %_Call(StringSubstring, language, 0, pos); |
} |