diff options
Diffstat (limited to 'test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js')
-rw-r--r-- | test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js index 63a68975a..4eccc3afc 100644 --- a/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js +++ b/test/built-ins/String/prototype/toUpperCase/S15.5.4.18_A1_T11.js @@ -9,16 +9,20 @@ description: > toUpperCase() function for this object ---*/ -var __obj = {toString:function(){throw "intostr";}} +var __obj = { + toString: function() { + throw "intostr"; + } +} __obj.toUpperCase = String.prototype.toUpperCase; ////////////////////////////////////////////////////////////////////////////// //CHECK#1 try { var x = __obj.toUpperCase(); - $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); + $ERROR('#1: "var x = __obj.toUpperCase()" lead to throwing exception'); } catch (e) { - if (e!=="intostr") { - $ERROR('#1.1: Exception === "intostr". Actual: '+e); + if (e !== "intostr") { + $ERROR('#1.1: Exception === "intostr". Actual: ' + e); } } // |