From a5e69a1534de88d1eb29b76657d84c8541b72df7 Mon Sep 17 00:00:00 2001 From: Trevor Florence Date: Wed, 10 Sep 2025 09:38:11 -0600 Subject: [PATCH] Remove unnecessary call to compareArray in this-value-boolean.js This assertion throws before `compareArray` is called. In addition, `compareArray` takes two parameters, not one. It's unclear to me why it was added in the first place. --- test/built-ins/Array/prototype/with/this-value-boolean.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/Array/prototype/with/this-value-boolean.js b/test/built-ins/Array/prototype/with/this-value-boolean.js index e46901f24a..a16c9db3b9 100644 --- a/test/built-ins/Array/prototype/with/this-value-boolean.js +++ b/test/built-ins/Array/prototype/with/this-value-boolean.js @@ -32,8 +32,8 @@ delete Boolean.prototype.length; Boolean.prototype[0] = "monkeys"; Boolean.prototype[2] = "bogus"; assert.throws(RangeError, - () => compareArray(Array.prototype.with.call(true, 0, 2)), + () => Array.prototype.with.call(true, 0, 2), "Array.prototype.with on object with undefined length"); assert.throws(RangeError, - () => compareArray(Array.prototype.with.call(false, 0, 2)), + () => Array.prototype.with.call(false, 0, 2), "Array.prototype.with on object with undefined length");