Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: src/i18n.js

Issue 1126213002: Wrap runtime.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/harmony-typedarray.js ('k') | src/json.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
);
« no previous file with comments | « src/harmony-typedarray.js ('k') | src/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698