| Index: src/harmony-array-includes.js
|
| diff --git a/src/harmony-array-includes.js b/src/harmony-array-includes.js
|
| index 124edf62ecd405d9796043e486f0892710c521f6..a6b59137d217f6a4c961333bca2220f554d0a6f6 100644
|
| --- a/src/harmony-array-includes.js
|
| +++ b/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);
|
| }
|
|
|