From af64d5e6dec4c135e945f93534a4e206576ae81b Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Fri, 15 May 2015 15:05:48 +0100 Subject: [PATCH] S15.4.4.5_A3.1_T1.js: Fix inconsistent error message Test for x.join(NaN) reports an error using the content of x.join("NaN"). This is confusing. --- test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js index dfe0ef195a..11988c2122 100644 --- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js +++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js @@ -48,5 +48,5 @@ if (x.join(undefined) !== "0,1,2,3") { //CHECK#7 if (x.join(NaN) !== "0NaN1NaN2NaN3") { - $ERROR('#7: x = new Array(0,1,2,3); x.join("NaN") === "0NaN1NaN2NaN3". Actual: ' + (x.join("NaN"))); + $ERROR('#7: x = new Array(0,1,2,3); x.join(NaN) === "0NaN1NaN2NaN3". Actual: ' + (x.join(NaN))); }