diff options
Diffstat (limited to 'test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js')
-rw-r--r-- | test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js index f0a41f16f..a8ca7399d 100644 --- a/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js +++ b/test/built-ins/String/prototype/match/S15.5.4.10_A1_T5.js @@ -10,8 +10,12 @@ description: Call match (regexp) function with null argument of function object ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(null) evaluates to "null" match(null) evaluates to match("null") -if (function(){return "gnulluna"}().match(null)[0] !== "null") { - $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: '+function(){return "gnulluna"}().match(null)[0] ); +if (function() { + return "gnulluna" + }().match(null)[0] !== "null") { + $ERROR('#1: function(){return "gnulluna"}().match(null)[0] === "null". Actual: ' + function() { + return "gnulluna" + }().match(null)[0]); } // ////////////////////////////////////////////////////////////////////////////// |