Index: src/extensions/i18n/collator.js |
diff --git a/src/extensions/i18n/collator.js b/src/extensions/i18n/collator.js |
index 3483515bef2e688e1a08b31e8e33a239e3f55f2b..d8d247b36f4be3ebde7f8f4899fe8143aa172ff4 100644 |
--- a/src/extensions/i18n/collator.js |
+++ b/src/extensions/i18n/collator.js |
@@ -35,8 +35,6 @@ |
* Useful for subclassing. |
*/ |
function initializeCollator(collator, locales, options) { |
- native function NativeJSCreateCollator(); |
- |
if (collator.hasOwnProperty('__initializedIntlObject')) { |
throw new TypeError('Trying to re-initialize Collator object.'); |
} |
@@ -103,9 +101,9 @@ function initializeCollator(collator, locales, options) { |
usage: {value: internalOptions.usage, writable: true} |
}); |
- var internalCollator = NativeJSCreateCollator(requestedLocale, |
- internalOptions, |
- resolved); |
+ var internalCollator = %CreateCollator(requestedLocale, |
+ internalOptions, |
+ resolved); |
// Writable, configurable and enumerable are set to false by default. |
Object.defineProperty(collator, 'collator', {value: internalCollator}); |
@@ -204,8 +202,7 @@ function initializeCollator(collator, locales, options) { |
* the sort order, or x comes after y in the sort order, respectively. |
*/ |
function compare(collator, x, y) { |
- native function NativeJSInternalCompare(); |
- return NativeJSInternalCompare(collator.collator, String(x), String(y)); |
+ return %InternalCompare(collator.collator, String(x), String(y)); |
}; |