Skip to content

Commit

Permalink
Repair filter test that was testing concat (#2522)
Browse files Browse the repository at this point in the history
Looks like a cut-n-paste error. A test in the
built-ins/Array/prototype/filter subtree was exercising the concat
function.

Fixes #2519.
  • Loading branch information
scole66 authored Mar 11, 2020
1 parent b0cb75f commit 22cd9fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ array.constructor = OArray;
Object.defineProperty(Array, Symbol.species, speciesDesc);
Object.defineProperty(OArray, Symbol.species, speciesDesc);

result = array.concat(function() {});
result = array.filter(function() {});

assert.sameValue(Object.getPrototypeOf(result), Array.prototype);
assert.sameValue(callCount, 0, 'Species constructor is not referenced');

0 comments on commit 22cd9fe

Please sign in to comment.