diff options
Diffstat (limited to 'test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js')
-rw-r--r-- | test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js index 29301ca72..c46f0f2b8 100644 --- a/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js +++ b/test/built-ins/String/prototype/charCodeAt/S15.5.4.5_A4.js @@ -9,10 +9,12 @@ es5id: 15.5.4.5_A4 description: Change toString function, it trow exception, and call charCodeAt() ---*/ -var __obj={ - valueOf:1, - toString:function(){throw 'intostring'}, - charCodeAt:String.prototype.charCodeAt +var __obj = { + valueOf: 1, + toString: function() { + throw 'intostring' + }, + charCodeAt: String.prototype.charCodeAt } ////////////////////////////////////////////////////////////////////////////// @@ -22,7 +24,7 @@ try { $ERROR('#1: "var x = __obj.charCodeAt()" lead to throwing exception'); } catch (e) { if (e !== 'intostring') { - $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ==='+e ); + $ERROR('#1.1: Exception === \'intostring\'. Actual: exception ===' + e); } } // |