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