summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js')
-rw-r--r--test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
index f3d40ae7a..dcf127bde 100644
--- a/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
+++ b/test/built-ins/String/prototype/charAt/S15.5.4.4_A1_T5.js
@@ -10,8 +10,12 @@ description: Call charAt() function with null argument of function object
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToInteger(null) evaluates to 0 charAt() evaluates to charAt(0)
-if (function(){return "lego"}().charAt(null) !== "l") {
- $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ==='+function(){return "lego"}().charAt(null) );
+if (function() {
+ return "lego"
+ }().charAt(null) !== "l") {
+ $ERROR('#1: function(){return "lego"}().charAt(null) === "l". Actual: function(){return "lego"}().charAt(null) ===' + function() {
+ return "lego"
+ }().charAt(null));
}
//
//////////////////////////////////////////////////////////////////////////////