summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js')
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
index 580ced07a..e5ecd573a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js
@@ -11,19 +11,15 @@ description: >
/a[a-z]{2,4}?/
---*/
-var __executed = /a[a-z]{2,4}?/.exec({
- toString: function() {
- return "abcdefghi"
- }
-});
+var __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}});
var __expected = ["abc"];
-__expected.index = 0;
-__expected.input = "abcdefghi";
+__expected.index=0;
+__expected.input="abcdefghi";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -42,7 +38,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: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}