[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}
This commit is contained in:
parent
0ed27704f6
commit
611257fbb1
@ -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 @@
|
|||||||
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);
|
||||||
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user