Skip to content

Commit

Permalink
drop some more ToLength tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Feb 18, 2021
1 parent de922f3 commit 8a71f7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions tests/tests/es.array.filter.js
Expand Up @@ -21,12 +21,6 @@ QUnit.test('Array#filter', assert => {
assert.throws(() => filter.call(null, () => { /* empty */ }), TypeError);
assert.throws(() => filter.call(undefined, () => { /* empty */ }), TypeError);
}
assert.notThrows(() => filter.call({
length: -1,
0: 1,
}, () => {
throw new Error();
}), 'uses ToLength');
array = [];
// eslint-disable-next-line object-shorthand -- constructor
array.constructor = { [Symbol.species]: function () {
Expand Down
6 changes: 0 additions & 6 deletions tests/tests/es.array.map.js
Expand Up @@ -25,12 +25,6 @@ QUnit.test('Array#map', assert => {
assert.throws(() => map.call(null, () => { /* empty */ }), TypeError);
assert.throws(() => map.call(undefined, () => { /* empty */ }), TypeError);
}
assert.notThrows(() => map.call({
length: -1,
0: 1,
}, () => {
throw new Error();
}).length === 0, 'uses ToLength');
array = [];
// eslint-disable-next-line object-shorthand -- constructor
array.constructor = { [Symbol.species]: function () {
Expand Down

0 comments on commit 8a71f7a

Please sign in to comment.