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

Unified Diff: src/harmony-templates.js

Issue 553623004: ES6: Array.prototype.slice and friends should use ToLength instead of ToUint32 Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove failing tests. Created 5 years, 10 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-array-includes.js ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-templates.js
diff --git a/src/harmony-templates.js b/src/harmony-templates.js
index 254f434fdfe0e6eb75a268b8774c6fa7a49b261e..efb260958f38b70569bf847ae81add980ab94c38 100644
--- a/src/harmony-templates.js
+++ b/src/harmony-templates.js
@@ -85,6 +85,9 @@ function StringRaw(callSite) {
function ExtendStringForTemplates() {
%CheckIsBootstrapping();
+ // Upgrade index conversion semantics to ES6.
+ ToLength.harmony = true;
+
// Set up the non-enumerable functions on the String object.
InstallFunctions($String, DONT_ENUM, $Array(
"raw", StringRaw
« no previous file with comments | « src/harmony-array-includes.js ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698