diff --git a/tests/tests/es.array.filter.js b/tests/tests/es.array.filter.js index f4556665921a..73c31050eaa5 100644 --- a/tests/tests/es.array.filter.js +++ b/tests/tests/es.array.filter.js @@ -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 () { diff --git a/tests/tests/es.array.map.js b/tests/tests/es.array.map.js index e3a83d0a4e54..11837b41156c 100644 --- a/tests/tests/es.array.map.js +++ b/tests/tests/es.array.map.js @@ -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 () {