summaryrefslogtreecommitdiff
path: root/test/built-ins/RegExp/prototype/exec
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-09 11:35:37 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 11:35:37 -0500
commita01de4a722d088055a7d84d8c691ddd7109edb34 (patch)
treef583c8efd40a3b699261f1166da75a9861d83e7b /test/built-ins/RegExp/prototype/exec
parent7b01f9799f99851955f23c18c12e6651c1941022 (diff)
downloadqtdeclarative-testsuites-a01de4a722d088055a7d84d8c691ddd7109edb34.tar.gz
js-beautify: make all indentation consistent (depth & character) (#1409)
Diffstat (limited to 'test/built-ins/RegExp/prototype/exec')
-rw-r--r--test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js2
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js2
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js17
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js7
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js14
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js8
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js26
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js268
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js20
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js34
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js26
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js37
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js28
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js18
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js6
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js12
-rw-r--r--test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js10
-rw-r--r--test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js4
-rw-r--r--test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js1
59 files changed, 818 insertions, 772 deletions
diff --git a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
index ab93d95a8..4ccfba20f 100644
--- a/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
+++ b/test/built-ins/RegExp/prototype/exec/15.10.6.2-9-e-1.js
@@ -8,9 +8,9 @@ description: >
current algorithm
---*/
- var str = "Hello World!";
- var regObj = new RegExp("World");
- var result = false;
- result = regObj.exec(str).toString() === "World";
+var str = "Hello World!";
+var regObj = new RegExp("World");
+var result = false;
+result = regObj.exec(str).toString() === "World";
assert(result, 'result !== true');
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
index 5c69cca8e..3b8b33029 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js
@@ -15,7 +15,9 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) {
var __obj = RegExp.prototype.exec.length;
-verifyNotWritable(RegExp.prototype.exec, "length", null, function(){return "shifted";});
+verifyNotWritable(RegExp.prototype.exec, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (RegExp.prototype.exec.length !== __obj) {
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
index 1fd0f84ac..cbac6ac4c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js
@@ -8,7 +8,7 @@ description: Checking RegExp.prototype.exec
---*/
(/foo/).test('xfoox');
-var match = new RegExp('(.|\r|\n)*','').exec()[0];
+var match = new RegExp('(.|\r|\n)*', '').exec()[0];
if (match === 'xfoox') {
$ERROR('#1: regExp.exec() leaks match globally');
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
index f76ef50e6..0b7c3689c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js
@@ -12,12 +12,12 @@ description: String is "123" and RegExp is /1|12/
var __executed = /1|12/.exec("123");
var __expected = ["1"];
-__expected.index=0;
-__expected.input="123";
+__expected.index = 0;
+__expected.input = "123";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
index 824d63114..dc640a28d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js
@@ -12,12 +12,12 @@ description: String is 1.01 and RegExp is /1|12/
var __executed = /1|12/.exec(1.01);
var __expected = ["1"];
-__expected.index=0;
-__expected.input="1.01";
+__expected.index = 0;
+__expected.input = "1.01";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
index e1cbaccf1..10dc7b5c5 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js
@@ -12,12 +12,12 @@ description: String is new Number(1.012) and RegExp is /2|12/
var __executed = /2|12/.exec(new Number(1.012));
var __expected = ["12"];
-__expected.index=3;
-__expected.input="1.012";
+__expected.index = 3;
+__expected.input = "1.012";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
index f019f3ceb..1fef458d1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js
@@ -11,15 +11,19 @@ description: >
/\.14/
---*/
-var __executed = /\.14/.exec({toString:function(){return Math.PI}});
+var __executed = /\.14/.exec({
+ toString: function() {
+ return Math.PI
+ }
+});
var __expected = [".14"];
-__expected.index=1;
-__expected.input=String(Math.PI);
+__expected.index = 1;
+__expected.input = String(Math.PI);
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -38,7 +42,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 = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
index 806522d57..ef9f1b47f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js
@@ -12,12 +12,12 @@ description: String is true and RegExp is /t[a-b|q-s]/
var __executed = /t[a-b|q-s]/.exec(true);
var __expected = ["tr"];
-__expected.index=0;
-__expected.input="true";
+__expected.index = 0;
+__expected.input = "true";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
index f52b8ffb8..ab68f596c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js
@@ -12,12 +12,12 @@ description: String is new Boolean and RegExp is /AL|se/
var __executed = /AL|se/.exec(new Boolean);
var __expected = ["se"];
-__expected.index=3;
-__expected.input="false";
+__expected.index = 3;
+__expected.input = "false";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
index 8a19ebf50..d9cd5c4af 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js
@@ -9,15 +9,19 @@ es5id: 15.10.6.2_A1_T15
description: "String is {toString:function(){return false;}} and RegExp is /LS/i"
---*/
-var __executed = /LS/i.exec({toString:function(){return false}});
+var __executed = /LS/i.exec({
+ toString: function() {
+ return false
+ }
+});
var __expected = ["ls"];
-__expected.index=2;
-__expected.input="false";
+__expected.index = 2;
+__expected.input = "false";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +40,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 = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
index a0a229e5f..371f41238 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js
@@ -11,5 +11,5 @@ description: RegExp is /undefined/ and call exec() without arguments
var __re = /undefined/.exec()[0];
if (__re !== "undefined") {
- $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re));
+ $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
index b8b290bc3..6b2c1501e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js
@@ -12,12 +12,12 @@ description: String is null and RegExp is /ll|l/
var __executed = /ll|l/.exec(null);
var __expected = ["ll"];
-__expected.index=2;
-__expected.input="null";
+__expected.index = 2;
+__expected.input = "null";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
index 5095f634c..bcee432f1 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js
@@ -12,12 +12,12 @@ description: String is undefined and RegExp is /nd|ne/
var __executed = /nd|ne/.exec(undefined);
var __expected = ["nd"];
-__expected.index=1;
-__expected.input="undefined";
+__expected.index = 1;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
index e5d74add5..e56a3b0e9 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js
@@ -12,12 +12,12 @@ description: String is void 0 and RegExp is /e{1}/
var __executed = /e{1}/.exec(void 0);
var __expected = ["e"];
-__expected.index=3;
-__expected.input="undefined";
+__expected.index = 3;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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 = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
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]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
index b6bbf42f9..245fd746e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js
@@ -12,12 +12,12 @@ description: String is x and RegExp is /[a-f]d/, where x is undefined variable
var __executed = /[a-f]d/.exec(x);
var __expected = ["ed"];
-__expected.index=7;
-__expected.input="undefined";
+__expected.index = 7;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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-f]d/.exec(x); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
index ad8205338..d6499080c 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js
@@ -9,15 +9,15 @@ es5id: 15.10.6.2_A1_T21
description: String is function(){}() and RegExp is /[a-z]n/
---*/
-var __executed = /[a-z]n/.exec(function(){}());
+var __executed = /[a-z]n/.exec(function() {}());
var __expected = ["un"];
-__expected.index=0;
-__expected.input="undefined";
+__expected.index = 0;
+__expected.input = "undefined";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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-z]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
index f65da3263..d0de1daf6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js
@@ -12,12 +12,12 @@ description: String is new Object("abcdefghi") and RegExp is /a[a-z]{2,4}/
var __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi"));
var __expected = ["abcde"];
-__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(new Object("abcdefghi")); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -36,7 +36,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(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
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 e5ecd573a..580ced07a 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,15 +11,19 @@ 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
@@ -38,7 +42,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]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
index 2bb8b42d5..c0344cfa2 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js
@@ -12,15 +12,22 @@ description: >
/(aa|aabaac|ba|b|c)* /
---*/
-var __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}});
+var __executed = /(aa|aabaac|ba|b|c)*/.exec({
+ toString: function() {
+ return {};
+ },
+ valueOf: function() {
+ return "aabaac";
+ }
+});
var __expected = ["aaba", "ba"];
-__expected.index=0;
-__expected.input="aabaac";
+__expected.index = 0;
+__expected.input = "aabaac";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -39,7 +46,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 = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
index e80bc22ba..56ab7b92e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js
@@ -11,15 +11,17 @@ description: >
/(z)((a+)?(b+)?(c))* /
---*/
-var __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})());
+var __executed = /(z)((a+)?(b+)?(c))*/.exec((function() {
+ return "zaacbbbcac"
+})());
var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"];
-__expected.index=0;
-__expected.input="zaacbbbcac";
+__expected.index = 0;
+__expected.input = "zaacbbbcac";
//CHECK#0
if ((__executed instanceof Array) !== true) {
- $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true');
+ $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true');
}
//CHECK#1
@@ -38,7 +40,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 = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
index 27e416f17..ba3a84f04 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js
@@ -13,9 +13,13 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}})));
+ $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({
+ toString: function() {
+ throw "intostr"
+ }
+ })));
} catch (e) {
- if (e !== "intostr") {
- $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e));
- }
+ if (e !== "intostr") {
+ $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
index ee0dad0cd..dbea95b38 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js
@@ -13,7 +13,12 @@ description: >
//CHECK#1
try {
- $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}})));
+ $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({
+ toString: void 0,
+ valueOf: function() {
+ throw "invalof"
+ }
+ })));
} catch (e) {
if (e !== "invalof") {
$ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e));
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
index 2fe4adc12..60704445a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js
@@ -14,7 +14,7 @@ var __string;
//CHECK#1
var __re = /1|12/;
if (__re.exec(__string) !== null) {
- $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re));
+ $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re));
}
-function __string(){};
+function __string() {};
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
index da9044c91..0bea5bf1b 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js
@@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
index d76e16ca9..61b203f0f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js
@@ -13,9 +13,9 @@ var exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate")));
+ $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
index 461f4dafe..8a1d3bf5b 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js
@@ -16,9 +16,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
__instance.exec("message to investigate");
- $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")');
+ $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")');
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
index ae0fefba1..b7cbc10ff 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js
@@ -14,11 +14,11 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
__instance.exec("message to investigate");
- $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}');
+ $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}');
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e));
+ }
}
-function __instance(){};
+function __instance() {};
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
index 8cd33f8c3..c71ddfcd8 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js
@@ -14,10 +14,10 @@ var __instance = new String("[a-b]");
__instance.exec = RegExp.prototype.exec;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
- }
+try {
+ $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
+ }
+}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
index 146eeacf4..1b75152ed 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js
@@ -14,10 +14,10 @@ var __instance = new Boolean(false);
__instance.exec = RegExp.prototype.exec;
//CHECK#1
- try {
- $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
- } catch (e) {
- if ((e instanceof TypeError !== true)) {
- $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
- }
+try {
+ $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+} catch (e) {
+ if ((e instanceof TypeError !== true)) {
+ $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e));
}
+}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
index 5c2fa4f00..8238d3f8d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js
@@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate")));
+ $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
index 7c0a55e09..6d19fc062 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
index 8c31afbbf..bc35c777a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
index f71557bf6..5ee95865a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js
@@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec;
//CHECK#1
try {
- $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
+ $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate")));
} catch (e) {
- if ((e instanceof TypeError) !== true) {
- $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
- }
+ if ((e instanceof TypeError) !== true) {
+ $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
index 4052d931a..14ad64b90 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js
@@ -16,23 +16,23 @@ var __matched = [];
var __expected = ["ab", "cd2", "ab3", "cd"];
-do{
- var __executed = __re.exec("ab cd2 ab34 cd");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("ab cd2 ab34 cd");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
- $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length));
+ $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length));
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
- if (__expected[index] !== __matched[index]) {
- $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__expected[index] !== __matched[index]) {
+ $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
index 34a0fe65a..756ec7a45 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js
@@ -11,144 +11,144 @@ description: RegExp is /[Nn]evermore/g and tested string is very long string
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var NEVERMORE = 11;
-var NEVERMORE=11;
-
var __re = /[Nn]evermore/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== NEVERMORE) {
- $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
index 8afc2f5a5..52f8f6ff8 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js
@@ -11,144 +11,144 @@ description: RegExp is /[Nn]?evermore/g and tested string is very long string
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var NEVERMORE_AND_EVERMORE = 12;
-var NEVERMORE_AND_EVERMORE=12;
-
var __re = /[Nn]?evermore/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== NEVERMORE_AND_EVERMORE) {
- $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
index 278549a27..b652749b6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js
@@ -13,144 +13,144 @@ description: >
---*/
var __the__raven = " Once upon a midnight dreary, while I pondered weak and weary," +
- "Over many a quaint and curious volume of forgotten lore," +
- "While I nodded, nearly napping, suddenly there came a tapping," +
- "As of some one gently rapping, rapping at my chamber door." +
- "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
- "Only this, and nothing more.'" +
- "Ah, distinctly I remember it was in the bleak December," +
- "And each separate dying ember wrought its ghost upon the floor." +
- "Eagerly I wished the morrow; - vainly I had sought to borrow" +
- "From my books surcease of sorrow - sorrow for the lost Lenore -" +
- "For the rare and radiant maiden whom the angels named Lenore -" +
- "Nameless here for evermore." +
- "\n" +
- "And the silken sad uncertain rustling of each purple curtain" +
- "Thrilled me - filled me with fantastic terrors never felt before;" +
- "So that now, to still the beating of my heart, I stood repeating" +
- "`'Tis some visitor entreating entrance at my chamber door -" +
- "Some late visitor entreating entrance at my chamber door; -" +
- "This it is, and nothing more,'" +
- "Presently my soul grew stronger; hesitating then no longer," +
- "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
- "But the fact is I was napping, and so gently you came rapping," +
- "And so faintly you came tapping, tapping at my chamber door," +
- "That I scarce was sure I heard you' - here I opened wide the door; -" +
- "Darkness there, and nothing more." +
- "\n" +
- "Deep into that darkness peering, long I stood there wondering, fearing," +
- "Doubting, dreaming dreams no mortal ever dared to dream before" +
- "But the silence was unbroken, and the darkness gave no token," +
- "And the only word there spoken was the whispered word, `Lenore!'" +
- "This I whispered, and an echo murmured back the word, `Lenore!'" +
- "Merely this and nothing more." +
- "\n" +
- "Back into the chamber turning, all my soul within me burning," +
- "Soon again I heard a tapping somewhat louder than before." +
- "`Surely,' said I, `surely that is something at my window lattice;" +
- "Let me see then, what thereat is, and this mystery explore -" +
- "Let my heart be still a moment and this mystery explore; -" +
- "'Tis the wind and nothing more!'" +
- "\n" +
- "Open here I flung the shutter, when, with many a flirt and flutter," +
- "In there stepped a stately raven of the saintly days of yore." +
- "Not the least obeisance made he; not a minute stopped or stayed he;" +
- "But, with mien of lord or lady, perched above my chamber door -" +
- "Perched upon a bust of Pallas just above my chamber door -" +
- "Perched, and sat, and nothing more." +
- "\n" +
- "Then this ebony bird beguiling my sad fancy into smiling," +
- "By the grave and stern decorum of the countenance it wore," +
- "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
- "Ghastly grim and ancient raven wandering from the nightly shore -" +
- "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
- "Quoth the raven, `Nevermore.'" +
- "-n" +
- "Much I marvelled this ungainly fowl to hear discourse so plainly," +
- "Though its answer little meaning - little relevancy bore;" +
- "For we cannot help agreeing that no living human being" +
- "Ever yet was blessed with seeing bird above his chamber door -" +
- "Bird or beast above the sculptured bust above his chamber door," +
- "With such name as `Nevermore.'" +
- "\n" +
- "But the raven, sitting lonely on the placid bust, spoke only," +
- "That one word, as if his soul in that one word he did outpour." +
- "Nothing further then he uttered - not a feather then he fluttered -" +
- "Till I scarcely more than muttered `Other friends have flown before -" +
- "On the morrow he will leave me, as my hopes have flown before.'" +
- "Then the bird said, `Nevermore.'" +
- "\n" +
- "Startled at the stillness broken by reply so aptly spoken," +
- "`Doubtless,' said I, `what it utters is its only stock and store," +
- "Caught from some unhappy master whom unmerciful disaster" +
- "Followed fast and followed faster till his songs one burden bore -" +
- "Till the dirges of his hope that melancholy burden bore" +
- "Of \"Never-nevermore.\"'" +
- "\n" +
- "But the raven still beguiling all my sad soul into smiling," +
- "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
- "Then, upon the velvet sinking, I betook myself to linking" +
- "Fancy unto fancy, thinking what this ominous bird of yore -" +
- "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
- "Meant in croaking `Nevermore.'" +
- "\n" +
- "This I sat engaged in guessing, but no syllable expressing" +
- "To the fowl whose fiery eyes now burned into my bosom's core;" +
- "This and more I sat divining, with my head at ease reclining" +
- "On the cushion's velvet lining that the lamp-light gloated o'er," +
- "But whose velvet violet lining with the lamp-light gloating o'er," +
- "She shall press, ah, nevermore!" +
- "\n" +
- "Then, methought, the air grew denser, perfumed from an unseen censer" +
- "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
- "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
- "Respite - respite and nepenthe from thy memories of Lenore!" +
- "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
- "Whether tempter sent, or whether tempest tossed thee here ashore," +
- "Desolate yet all undaunted, on this desert land enchanted -" +
- "On this home by horror haunted - tell me truly, I implore -" +
- "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
- "By that Heaven that bends above us - by that God we both adore -" +
- "Tell this soul with sorrow laden if, within the distant Aidenn," +
- "It shall clasp a sainted maiden whom the angels named Lenore -" +
- "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
- "`Get thee back into the tempest and the Night's Plutonian shore!" +
- "Leave no black plume as a token of that lie thy soul hath spoken!" +
- "Leave my loneliness unbroken! - quit the bust above my door!" +
- "Take thy beak from out my heart, and take thy form from off my door!'" +
- "Quoth the raven, `Nevermore.'" +
- "\n" +
- "And the raven, never flitting, still is sitting, still is sitting" +
- "On the pallid bust of Pallas just above my chamber door;" +
- "And his eyes have all the seeming of a demon's that is dreaming," +
- "And the lamp-light o'er him streaming throws his shadow on the floor;" +
- "And my soul from out that shadow that lies floating on the floor" +
- "Shall be lifted - nevermore!"
+ "Over many a quaint and curious volume of forgotten lore," +
+ "While I nodded, nearly napping, suddenly there came a tapping," +
+ "As of some one gently rapping, rapping at my chamber door." +
+ "`'Tis some visitor,' I muttered, `tapping at my chamber door -" +
+ "Only this, and nothing more.'" +
+ "Ah, distinctly I remember it was in the bleak December," +
+ "And each separate dying ember wrought its ghost upon the floor." +
+ "Eagerly I wished the morrow; - vainly I had sought to borrow" +
+ "From my books surcease of sorrow - sorrow for the lost Lenore -" +
+ "For the rare and radiant maiden whom the angels named Lenore -" +
+ "Nameless here for evermore." +
+ "\n" +
+ "And the silken sad uncertain rustling of each purple curtain" +
+ "Thrilled me - filled me with fantastic terrors never felt before;" +
+ "So that now, to still the beating of my heart, I stood repeating" +
+ "`'Tis some visitor entreating entrance at my chamber door -" +
+ "Some late visitor entreating entrance at my chamber door; -" +
+ "This it is, and nothing more,'" +
+ "Presently my soul grew stronger; hesitating then no longer," +
+ "`Sir,' said I, `or Madam, truly your forgiveness I implore;" +
+ "But the fact is I was napping, and so gently you came rapping," +
+ "And so faintly you came tapping, tapping at my chamber door," +
+ "That I scarce was sure I heard you' - here I opened wide the door; -" +
+ "Darkness there, and nothing more." +
+ "\n" +
+ "Deep into that darkness peering, long I stood there wondering, fearing," +
+ "Doubting, dreaming dreams no mortal ever dared to dream before" +
+ "But the silence was unbroken, and the darkness gave no token," +
+ "And the only word there spoken was the whispered word, `Lenore!'" +
+ "This I whispered, and an echo murmured back the word, `Lenore!'" +
+ "Merely this and nothing more." +
+ "\n" +
+ "Back into the chamber turning, all my soul within me burning," +
+ "Soon again I heard a tapping somewhat louder than before." +
+ "`Surely,' said I, `surely that is something at my window lattice;" +
+ "Let me see then, what thereat is, and this mystery explore -" +
+ "Let my heart be still a moment and this mystery explore; -" +
+ "'Tis the wind and nothing more!'" +
+ "\n" +
+ "Open here I flung the shutter, when, with many a flirt and flutter," +
+ "In there stepped a stately raven of the saintly days of yore." +
+ "Not the least obeisance made he; not a minute stopped or stayed he;" +
+ "But, with mien of lord or lady, perched above my chamber door -" +
+ "Perched upon a bust of Pallas just above my chamber door -" +
+ "Perched, and sat, and nothing more." +
+ "\n" +
+ "Then this ebony bird beguiling my sad fancy into smiling," +
+ "By the grave and stern decorum of the countenance it wore," +
+ "`Though thy crest be shorn and shaven, thou,' I said, `art sure no craven." +
+ "Ghastly grim and ancient raven wandering from the nightly shore -" +
+ "Tell me what thy lordly name is on the Night's Plutonian shore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "-n" +
+ "Much I marvelled this ungainly fowl to hear discourse so plainly," +
+ "Though its answer little meaning - little relevancy bore;" +
+ "For we cannot help agreeing that no living human being" +
+ "Ever yet was blessed with seeing bird above his chamber door -" +
+ "Bird or beast above the sculptured bust above his chamber door," +
+ "With such name as `Nevermore.'" +
+ "\n" +
+ "But the raven, sitting lonely on the placid bust, spoke only," +
+ "That one word, as if his soul in that one word he did outpour." +
+ "Nothing further then he uttered - not a feather then he fluttered -" +
+ "Till I scarcely more than muttered `Other friends have flown before -" +
+ "On the morrow he will leave me, as my hopes have flown before.'" +
+ "Then the bird said, `Nevermore.'" +
+ "\n" +
+ "Startled at the stillness broken by reply so aptly spoken," +
+ "`Doubtless,' said I, `what it utters is its only stock and store," +
+ "Caught from some unhappy master whom unmerciful disaster" +
+ "Followed fast and followed faster till his songs one burden bore -" +
+ "Till the dirges of his hope that melancholy burden bore" +
+ "Of \"Never-nevermore.\"'" +
+ "\n" +
+ "But the raven still beguiling all my sad soul into smiling," +
+ "Straight I wheeled a cushioned seat in front of bird and bust and door;" +
+ "Then, upon the velvet sinking, I betook myself to linking" +
+ "Fancy unto fancy, thinking what this ominous bird of yore -" +
+ "What this grim, ungainly, ghastly, gaunt, and ominous bird of yore" +
+ "Meant in croaking `Nevermore.'" +
+ "\n" +
+ "This I sat engaged in guessing, but no syllable expressing" +
+ "To the fowl whose fiery eyes now burned into my bosom's core;" +
+ "This and more I sat divining, with my head at ease reclining" +
+ "On the cushion's velvet lining that the lamp-light gloated o'er," +
+ "But whose velvet violet lining with the lamp-light gloating o'er," +
+ "She shall press, ah, nevermore!" +
+ "\n" +
+ "Then, methought, the air grew denser, perfumed from an unseen censer" +
+ "Swung by Seraphim whose foot-falls tinkled on the tufted floor." +
+ "`Wretch,' I cried, `thy God hath lent thee - by these angels he has sent thee" +
+ "Respite - respite and nepenthe from thy memories of Lenore!" +
+ "Quaff, oh quaff this kind nepenthe, and forget this lost Lenore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil! -" +
+ "Whether tempter sent, or whether tempest tossed thee here ashore," +
+ "Desolate yet all undaunted, on this desert land enchanted -" +
+ "On this home by horror haunted - tell me truly, I implore -" +
+ "Is there - is there balm in Gilead? - tell me - tell me, I implore!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Prophet!' said I, `thing of evil! - prophet still, if bird or devil!" +
+ "By that Heaven that bends above us - by that God we both adore -" +
+ "Tell this soul with sorrow laden if, within the distant Aidenn," +
+ "It shall clasp a sainted maiden whom the angels named Lenore -" +
+ "Clasp a rare and radiant maiden, whom the angels named Lenore?'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "`Be that word our sign of parting, bird or fiend!' I shrieked upstarting -" +
+ "`Get thee back into the tempest and the Night's Plutonian shore!" +
+ "Leave no black plume as a token of that lie thy soul hath spoken!" +
+ "Leave my loneliness unbroken! - quit the bust above my door!" +
+ "Take thy beak from out my heart, and take thy form from off my door!'" +
+ "Quoth the raven, `Nevermore.'" +
+ "\n" +
+ "And the raven, never flitting, still is sitting, still is sitting" +
+ "On the pallid bust of Pallas just above my chamber door;" +
+ "And his eyes have all the seeming of a demon's that is dreaming," +
+ "And the lamp-light o'er him streaming throws his shadow on the floor;" +
+ "And my soul from out that shadow that lies floating on the floor" +
+ "Shall be lifted - nevermore!"
+
+var ALL_THE_HOPELESS_MORE = 18;
-var ALL_THE_HOPELESS_MORE=18;
-
var __re = /([Nn]?ever|([Nn]othing\s{1,}))more/g;
-var __matched=0;
+var __matched = 0;
-do{
- var __executed = __re.exec(__the__raven);
- if (__executed !== null) {
- __matched++;
- } else {
- break;
- }
-}while(1);
+do {
+ var __executed = __re.exec(__the__raven);
+ if (__executed !== null) {
+ __matched++;
+ } else {
+ break;
+ }
+} while (1);
//CHECK#1
if (__matched !== ALL_THE_HOPELESS_MORE) {
- $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched);
+ $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)' + __matched);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
index bd8109d4e..2ed60a686 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js
@@ -14,16 +14,16 @@ var __re = /\d+/g;
var __matched = [];
-var __expected = ["123","456","789"];
+var __expected = ["123", "456", "789"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
index 8bef077da..fa53c3d24 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js
@@ -14,16 +14,16 @@ var __re = /(\d+)/g;
var __matched = [];
-var __expected = ["123","456","789"];
+var __expected = ["123", "456", "789"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(true);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (true);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
index 57d17d1f2..822ba2de7 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js
@@ -14,16 +14,16 @@ var __re = /\d+/;
var __matched = [];
-var __expected = ["123","123","123","123","123","123","123","123","123","123"];
+var __expected = ["123", "123", "123", "123", "123", "123", "123", "123", "123", "123"];
-do{
- var __executed = __re.exec("123 456 789");
- if (__executed !== null) {
- __matched.push(__executed[0]);
- } else {
- break;
- }
-}while(__matched.length<10);
+do {
+ var __executed = __re.exec("123 456 789");
+ if (__executed !== null) {
+ __matched.push(__executed[0]);
+ } else {
+ break;
+ }
+} while (__matched.length < 10);
//CHECK#1
if (__expected.length !== __matched.length) {
@@ -31,7 +31,7 @@ if (__expected.length !== __matched.length) {
}
//CHECK#2
-for(var index=0; index<__expected.length; index++) {
+for (var index = 0; index < __expected.length; index++) {
if (__expected[index] !== __matched[index]) {
$ERROR('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]);
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
index 2f080253f..0e837302f 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = 12;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
index 404c48956..48a01b27e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js
@@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {valueOf:function(){return 12;}};
+var __obj = {
+ valueOf: function() {
+ return 12;
+ }
+};
__re.lastIndex = __obj;
@@ -53,22 +57,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
index b375c31d9..d9e466e2d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js
@@ -21,27 +21,31 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {valueOf:function(){throw "intoint";}};
+var __obj = {
+ valueOf: function() {
+ throw "intoint";
+ }
+};
__re.lastIndex = __obj;
@@ -49,7 +53,7 @@ __re.lastIndex = __obj;
try {
$ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42")));
} catch (e) {
- if (e !== "intoint") {
- $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
- }
+ if (e !== "intoint") {
+ $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
index 34693e335..770b1cc40 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js
@@ -22,27 +22,34 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
-var __obj = {toString:function(){return 12;},valueOf:function(){return {};}};
+var __obj = {
+ toString: function() {
+ return 12;
+ },
+ valueOf: function() {
+ return {};
+ }
+};
__re.lastIndex = __obj;
@@ -54,22 +61,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
index ab07be7a4..1947c862e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = undefined;
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
index e770aec3e..a664bf88a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = void 0;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
index 249609f65..f87975591 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = null;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
index 295aac596..3043cb53d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = x;
@@ -51,24 +51,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
var x;
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
index 3c852b308..4a9f46912 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = false;
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
index e3f478c52..5b555279a 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = Math.NaN;
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
index b82c014f4..10315051d 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js
@@ -19,24 +19,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = "12";
@@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
index 7dc9e0ffa..5f710578e 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js
@@ -21,24 +21,24 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__re.lastIndex = "eleven";
@@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42";
//CHECK#5
if (__executed.length !== __expected.length) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#6
if (__executed.index !== __expected.index) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#7
if (__executed.input !== __expected.input) {
- $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#8
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
index a7b9e0283..0ee3bf9c0 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js
@@ -21,34 +21,34 @@ __expected.input = "aac1dz2233a1bz12nm444ab42";
//CHECK#1
if (__executed.length !== __expected.length) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length);
}
//CHECK#2
if (__executed.index !== __expected.index) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index);
}
//CHECK#3
if (__executed.input !== __expected.input) {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input);
}
//CHECK#4
-for(var index=0; index<__expected.length; index++) {
- if (__executed[index] !== __expected[index]) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
- }
+for (var index = 0; index < __expected.length; index++) {
+ if (__executed[index] !== __expected[index]) {
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]);
+ }
}
__executed = __re.exec("aacd22");
//CHECK#5
if (__executed) {
- $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true');
+ $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true');
}
//CHECK#6
if (__re.lastIndex !== 0) {
- $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
index 9bd529e02..c2a6c7a47 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js
@@ -11,15 +11,15 @@ description: "Set lastIndex to 100 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")"
---*/
var __re = /(?:ab|cd)\d?/g;
-__re.lastIndex=100;
+__re.lastIndex = 100;
var __executed = __re.exec("aacd22 ");
//CHECK#1
if (__executed) {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true');
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true');
}
//CHECK#2
if (__re.lastIndex !== 0) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
index f65ed4937..8458728a6 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js
@@ -11,28 +11,28 @@ description: "Set lastIndex to -1 and call /(?:ab|cd)\\d?/g.exec(\"aacd22 \")"
---*/
var __re = /(?:ab|cd)\d?/g;
-__re.lastIndex=-1;
+__re.lastIndex = -1;
var __executed = __re.exec("aacd22 ");
//CHECK#1
if (__executed[0] !== "cd2") {
- $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
+ $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
}
//CHECK#2
if (__re.lastIndex !== 5) {
- $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
-__re.lastIndex=-100;
+__re.lastIndex = -100;
__executed = __re.exec("aacd22 ");
//CHECK#3
if (__executed[0] !== "cd2") {
- $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
+ $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"');
}
//CHECK#4
if (__re.lastIndex !== 5) {
- $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
+ $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex));
}
diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
index c891da096..22b98fa19 100644
--- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
+++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js
@@ -14,16 +14,16 @@ if (RegExp.prototype.exec.hasOwnProperty('length') !== true) {
$ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true');
}
- //CHECK#1
+//CHECK#1
if (RegExp.prototype.exec.propertyIsEnumerable('length') !== false) {
$ERROR('#1: RegExp.prototype.exec.propertyIsEnumerable(\'length\') === true');
}
- //CHECK#2
-var count=0;
+//CHECK#2
+var count = 0;
-for (var p in RegExp.prototype.exec){
- if (p==="length") count++;
+for (var p in RegExp.prototype.exec) {
+ if (p === "length") count++;
}
if (count !== 0) {
diff --git a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
index a6c26e1e5..5ba6e38de 100644
--- a/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
+++ b/test/built-ins/RegExp/prototype/exec/failure-g-lastindex-reset.js
@@ -39,13 +39,13 @@ function reset(value) {
lastIndexReads = 0;
}
-reset(42); // lastIndex beyond end of string.
+reset(42); // lastIndex beyond end of string.
result = r.exec('abc');
assert.sameValue(result, null);
assert.sameValue(r.lastIndex, 0);
assert.sameValue(lastIndexReads, 1);
-reset(-1); // No match.
+reset(-1); // No match.
result = r.exec('nbc');
assert.sameValue(result, null);
assert.sameValue(r.lastIndex, 0);
diff --git a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
index e1997fbbf..7a86bd138 100644
--- a/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
+++ b/test/built-ins/RegExp/prototype/exec/success-g-lastindex-no-access.js
@@ -30,4 +30,3 @@ assert.sameValue(result.length, 1);
assert.sameValue(result[0], 'a');
assert.sameValue(r.lastIndex, 1);
assert.sameValue(lastIndexReads, 1);
-