From b0cb75f30c0a7abd01d069d249eff96701e06bd8 Mon Sep 17 00:00:00 2001 From: Steven Cole Date: Tue, 10 Mar 2020 18:09:10 -0700 Subject: [PATCH] Repair indexOf test that was testing lastIndexOf (#2521) Looks like a cut-n-paste error; a test in the `indexOf` subtree was actually testing the `lastIndexOf` function. Now pointing where it should. Fixes #2520. --- test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js index 097453ced9..36c1023bf5 100644 --- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js +++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js @@ -8,7 +8,7 @@ description: > 'array' with length 0 ) ---*/ -var i = Array.prototype.lastIndexOf.call({ +var i = Array.prototype.indexOf.call({ length: 0 }, 1);