summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js')
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
index 266fc6ae1..fadadc996 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A5.js
@@ -9,10 +9,12 @@ es5id: 15.5.4.4_A5
description: Change toString function, it trow exception, and call charAt()
---*/
-var __obj={
- valueOf:1,
- toString:function(){throw 'intostring'},
- charAt:String.prototype.charAt
+var __obj = {
+ valueOf: 1,
+ toString: function() {
+ throw 'intostring'
+ },
+ charAt: String.prototype.charAt
}
//////////////////////////////////////////////////////////////////////////////
@@ -22,7 +24,7 @@ try {
$ERROR('#1: __obj={valueOf:1,toString:function(){throw \'intostring\'},charAt:String.prototype.charAt}; "var x = __obj.charAt()" 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);
}
}
//