Index: src/harmony-array-includes.js |
diff --git a/src/harmony-array-includes.js b/src/harmony-array-includes.js |
index d1a779042135b4d586031ea091b39bc6196078bf..d48e797b8b32c0e1c0365331b47c6f4abe17756a 100644 |
--- a/src/harmony-array-includes.js |
+++ b/src/harmony-array-includes.js |
@@ -52,6 +52,9 @@ function HarmonyArrayIncludesExtendArrayPrototype() { |
%FunctionSetLength(ArrayIncludes, 1); |
+ // Upgrade index conversion semantics to ES6. |
+ ToLength.harmony = true; |
+ |
// Set up the non-enumerable functions on the Array prototype object. |
InstallFunctions($Array.prototype, DONT_ENUM, $Array( |
"includes", ArrayIncludes |