Commit 611257fb authored by adamk's avatar adamk Committed by Commit bot

[es7] Array.prototype.includes should be unscopable

R=littledan@chromium.org
BUG=v8:5059

Review-Url: https://codereview.chromium.org/2033263002
Cr-Commit-Position: refs/heads/master@{#36721}
parent 0ed27704
...@@ -1657,6 +1657,7 @@ var unscopables = { ...@@ -1657,6 +1657,7 @@ var unscopables = {
fill: true, fill: true,
find: true, find: true,
findIndex: true, findIndex: true,
includes: true,
keys: true, keys: true,
}; };
......
...@@ -673,3 +673,8 @@ ...@@ -673,3 +673,8 @@
assertFalse(Array.prototype.includes.call(new Uint8Array([1, 2, 3]), 4)); assertFalse(Array.prototype.includes.call(new Uint8Array([1, 2, 3]), 4));
assertFalse(Array.prototype.includes.call(new Uint8Array([1, 2, 3]), 2, 2)); assertFalse(Array.prototype.includes.call(new Uint8Array([1, 2, 3]), 2, 2));
})(); })();
(function testUnscopable() {
assertTrue(Array.prototype[Symbol.unscopables].includes);
})();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment