Index: src/extensions/i18n/locale.js |
diff --git a/src/extensions/i18n/locale.js b/src/extensions/i18n/locale.js |
index ea95b87192e9f6adb74e36e3a769e45bfd7cdf10..e4783277e64a63285251cf9215ea6c66bc86efec 100644 |
--- a/src/extensions/i18n/locale.js |
+++ b/src/extensions/i18n/locale.js |
@@ -34,8 +34,6 @@ |
* Canonicalizes the language tag, or throws in case the tag is invalid. |
*/ |
function canonicalizeLanguageTag(localeID) { |
- native function NativeJSCanonicalizeLanguageTag(); |
- |
// null is typeof 'object' so we have to do extra check. |
if (typeof localeID !== 'string' && typeof localeID !== 'object' || |
localeID === null) { |
@@ -52,7 +50,7 @@ function canonicalizeLanguageTag(localeID) { |
// ICU bug filled - http://bugs.icu-project.org/trac/ticket/9265. |
// TODO(cira): check if -u-kn-true-kc-true-kh-true still throws after |
// upgrade to ICU 4.9. |
- var tag = NativeJSCanonicalizeLanguageTag(localeString); |
+ var tag = %CanonicalizeLanguageTag(localeString); |
if (tag === 'invalid-tag') { |
throw new RangeError('Invalid language tag: ' + localeString); |
} |