summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
index 38f3be48b..3823541a1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js
@@ -13,12 +13,12 @@ var __re = /((1)|(12))((3)|(23))/;
var __executed = __re.exec(new String("123"));
var __expected = ["123", "1", "1", undefined, "23", undefined, "23"];
-__expected.index=0;
-__expected.input="123";
+__expected.index = 0;
+__expected.input = "123";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true');
+ $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true');
}
//CHECK#1
@@ -37,7 +37,7 @@ if (__executed.input !== __expected.input) {
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__executed[index] !== __expected[index]) {
$ERROR('#4: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}