diff options
Diffstat (limited to 'test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js')
-rw-r--r-- | test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js index 69dd4c039..49f56f4d8 100644 --- a/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js +++ b/test/built-ins/String/prototype/indexOf/S15.5.4.7_A1_T9.js @@ -10,15 +10,15 @@ description: > ---*/ var __obj = { - valueOf:function(){}, - toString:void 0 + valueOf: function() {}, + toString: void 0 }; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 //since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined") -if (new String(__obj).indexOf(function(){}()) !== 0) { - $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: '+new String(__obj).indexOf(function(){}()) ); +if (new String(__obj).indexOf(function() {}()) !== 0) { + $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).indexOf(function(){}()) === 0. Actual: ' + new String(__obj).indexOf(function() {}())); } // ////////////////////////////////////////////////////////////////////////////// |