From 22cd9fe809a79d87c29371a8f13d9ae83bdbeffc Mon Sep 17 00:00:00 2001 From: Steven Cole Date: Tue, 10 Mar 2020 18:10:39 -0700 Subject: [PATCH] Repair filter test that was testing concat (#2522) Looks like a cut-n-paste error. A test in the built-ins/Array/prototype/filter subtree was exercising the concat function. Fixes #2519. --- .../prototype/filter/create-proto-from-ctor-realm-array.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js index d5db934d339..781357c0600 100644 --- a/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js +++ b/test/built-ins/Array/prototype/filter/create-proto-from-ctor-realm-array.js @@ -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');