diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es7/array-includes.js')
-rw-r--r-- | deps/v8/test/mjsunit/es7/array-includes.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/es7/array-includes.js b/deps/v8/test/mjsunit/es7/array-includes.js index 3981797a7c..4170a1cf31 100644 --- a/deps/v8/test/mjsunit/es7/array-includes.js +++ b/deps/v8/test/mjsunit/es7/array-includes.js @@ -316,6 +316,7 @@ assertFalse(Array.prototype.includes.call(arrayLikeWithTraps, "c", 2.1)); assertFalse(Array.prototype.includes.call(arrayLikeWithTraps, "c", +Infinity)); + assertFalse(["a", "b", "c"].includes("a", +Infinity)); assertTrue(["a", "b", "c"].includes("a", -Infinity)); assertTrue(["a", "b", "c"].includes("c", 2.9)); assertTrue(["a", "b", "c"].includes("c", NaN)); |