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

Unified Diff: src/runtime.js

Issue 1309243003: ES6: Array.prototype.slice and friends should use ToLength instead of ToUint32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use a TO_LENGTH macro instead of the ToLengthFlagged function Created 5 years, 3 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
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index e5e306d8cd83a32fd6510004b58a3bd5beefa4a4..12100ff1e091488f7a9e1e07a3e1ee401b13da40 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -24,6 +24,8 @@ var $toPositiveInteger;
var $toPrimitive;
var $toString;
+var harmony_tolength = false;
+
(function(global, utils) {
%CheckIsBootstrapping();
@@ -653,7 +655,6 @@ function ToLength(arg) {
: GlobalNumber.MAX_SAFE_INTEGER;
}
-
aperez 2015/09/09 18:20:45 Also, I noticed this bogus line removal here. I'm
// ES5, section 9.12
function SameValue(x, y) {
if (typeof x != typeof y) return false;

Powered by Google App Engine
This is Rietveld 408576698