Index: src/i18n.js |
diff --git a/src/i18n.js b/src/i18n.js |
index ec6518a33dc8e5cd7892a417af57588d3d9ca51b..d0c890b97105c7a173fae9c2abc0e3baeb1f6d63 100644 |
--- a/src/i18n.js |
+++ b/src/i18n.js |
@@ -287,7 +287,7 @@ function supportedLocalesOf(service, locales, options) { |
if (options === undefined) { |
options = {}; |
} else { |
- options = ToObject(options); |
+ options = $toObject(options); |
} |
var matcher = options.localeMatcher; |
@@ -743,7 +743,7 @@ function initializeLocaleList(locales) { |
return freezeArray(seen); |
} |
- var o = ToObject(locales); |
+ var o = $toObject(locales); |
// Converts it to UInt32 (>>> is shr on 32bit integers). |
var len = o.length >>> 0; |
@@ -955,7 +955,7 @@ function initializeCollator(collator, locales, options) { |
return new Intl.Collator(locales, options); |
} |
- return initializeCollator(ToObject(this), locales, options); |
+ return initializeCollator($toObject(this), locales, options); |
}, |
DONT_ENUM |
); |
@@ -1181,7 +1181,7 @@ function initializeNumberFormat(numberFormat, locales, options) { |
return new Intl.NumberFormat(locales, options); |
} |
- return initializeNumberFormat(ToObject(this), locales, options); |
+ return initializeNumberFormat($toObject(this), locales, options); |
}, |
DONT_ENUM |
); |
@@ -1266,7 +1266,7 @@ $setFunctionName(Intl.NumberFormat.supportedLocalesOf, 'supportedLocalesOf'); |
*/ |
function formatNumber(formatter, value) { |
// Spec treats -0 and +0 as 0. |
- var number = GlobalNumber(value) + 0; |
+ var number = $toNumber(value) + 0; |
return %InternalNumberFormat(%GetImplFromInitializedIntlObject(formatter), |
number); |
@@ -1573,7 +1573,7 @@ function initializeDateTimeFormat(dateFormat, locales, options) { |
return new Intl.DateTimeFormat(locales, options); |
} |
- return initializeDateTimeFormat(ToObject(this), locales, options); |
+ return initializeDateTimeFormat($toObject(this), locales, options); |
}, |
DONT_ENUM |
); |
@@ -1661,7 +1661,7 @@ function formatDate(formatter, dateValue) { |
if (dateValue === undefined) { |
dateMs = GlobalDate.now(); |
} else { |
- dateMs = GlobalNumber(dateValue); |
+ dateMs = $toNumber(dateValue); |
} |
if (!$isFinite(dateMs)) throw MakeRangeError(kDateRange); |
@@ -1774,7 +1774,7 @@ function initializeBreakIterator(iterator, locales, options) { |
return new Intl.v8BreakIterator(locales, options); |
} |
- return initializeBreakIterator(ToObject(this), locales, options); |
+ return initializeBreakIterator($toObject(this), locales, options); |
}, |
DONT_ENUM |
); |