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

Unified Diff: src/i18n.js

Issue 1123353004: Revert of Wrap runtime.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 d0c890b97105c7a173fae9c2abc0e3baeb1f6d63..ec6518a33dc8e5cd7892a417af57588d3d9ca51b 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -287,7 +287,7 @@
if (options === undefined) {
options = {};
} else {
- options = $toObject(options);
+ options = ToObject(options);
}
var matcher = options.localeMatcher;
@@ -743,7 +743,7 @@
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 @@
return new Intl.Collator(locales, options);
}
- return initializeCollator($toObject(this), locales, options);
+ return initializeCollator(ToObject(this), locales, options);
},
DONT_ENUM
);
@@ -1181,7 +1181,7 @@
return new Intl.NumberFormat(locales, options);
}
- return initializeNumberFormat($toObject(this), locales, options);
+ return initializeNumberFormat(ToObject(this), locales, options);
},
DONT_ENUM
);
@@ -1266,7 +1266,7 @@
*/
function formatNumber(formatter, value) {
// Spec treats -0 and +0 as 0.
- var number = $toNumber(value) + 0;
+ var number = GlobalNumber(value) + 0;
return %InternalNumberFormat(%GetImplFromInitializedIntlObject(formatter),
number);
@@ -1573,7 +1573,7 @@
return new Intl.DateTimeFormat(locales, options);
}
- return initializeDateTimeFormat($toObject(this), locales, options);
+ return initializeDateTimeFormat(ToObject(this), locales, options);
},
DONT_ENUM
);
@@ -1661,7 +1661,7 @@
if (dateValue === undefined) {
dateMs = GlobalDate.now();
} else {
- dateMs = $toNumber(dateValue);
+ dateMs = GlobalNumber(dateValue);
}
if (!$isFinite(dateMs)) throw MakeRangeError(kDateRange);
@@ -1774,7 +1774,7 @@
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