Improve String.prototype.@@replace poisoned stdlib test

This commit is contained in:
Alexey Shvayka 2020-03-25 14:46:45 +02:00 committed by Rick Waldron
parent 9b71a7cada
commit 1e63ce0eae
1 changed files with 2 additions and 1 deletions

View File

@ -4,11 +4,12 @@
esid: sec-regexp.prototype-@@replace
description: >
Both functional and pattern replacement performs as expected with poisoned stdlib.
features: [Symbol.replace, regexp-named-groups]
features: [Symbol.iterator, Symbol.replace, regexp-named-groups]
---*/
assert(delete Array.prototype.concat);
assert(delete Array.prototype.push);
assert(delete Array.prototype[Symbol.iterator]);
assert(delete Function.prototype.apply);
assert(delete String.prototype.charAt);
assert(delete String.prototype.charCodeAt);