From f21ac5609b92e4b55a502e9a46be379e4d0145cc Mon Sep 17 00:00:00 2001 From: littledan <microdan@gmail.com> Date: Mon, 13 Feb 2017 22:48:38 +0100 Subject: [PATCH] Fix call to assert.notSameValue (#859) Thanks to @demurgos for spotting this bug at #858 --- test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js index 8805e44e56..85263a4463 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A5.1_T1.js @@ -13,6 +13,6 @@ description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'" var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"'; for (var k = 0; k < non_ident.length; ++k) { var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident); - assert.notSameValue(null, "No match for character: " + non_ident[k]); + assert.notSameValue(arr, null, "No match for character: " + non_ident[k]); assert.sameValue(arr[0], non_ident[k]); } -- GitLab