summaryrefslogtreecommitdiff
path: root/deps/v8/src/harmony-array-includes.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/harmony-array-includes.js')
-rw-r--r--deps/v8/src/harmony-array-includes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/harmony-array-includes.js b/deps/v8/src/harmony-array-includes.js
index 124edf62ec..a6b59137d2 100644
--- a/deps/v8/src/harmony-array-includes.js
+++ b/deps/v8/src/harmony-array-includes.js
@@ -20,7 +20,7 @@ function InnerArrayIncludes(searchElement, fromIndex, array, length) {
return false;
}
- var n = $toInteger(fromIndex);
+ var n = TO_INTEGER(fromIndex);
var k;
if (n >= 0) {
@@ -49,7 +49,7 @@ function ArrayIncludes(searchElement, fromIndex) {
CHECK_OBJECT_COERCIBLE(this, "Array.prototype.includes");
var array = TO_OBJECT(this);
- var length = $toLength(array.length);
+ var length = TO_LENGTH(array.length);
return InnerArrayIncludes(searchElement, fromIndex, array, length);
}