diff --git a/test/built-ins/RegExp/S15.10.1_A1_T1.js b/test/built-ins/RegExp/S15.10.1_A1_T1.js index f9c79821da..20ff06134a 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T1.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a**" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**"))); + throw new Test262Error('#1.1: new RegExp("a**") throw SyntaxError. Actual: ' + (new RegExp("a**"))); } catch (e) { if ((e instanceof SyntaxError !== true)) { - $ERROR('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a**") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T10.js b/test/built-ins/RegExp/S15.10.1_A1_T10.js index 624547011a..9a7796c8ce 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T10.js @@ -9,9 +9,9 @@ description: Tested RegExp is "++a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a"))); + throw new Test262Error('#1.1: new RegExp("++a") throw SyntaxError. Actual: ' + (new RegExp("++a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("++a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T11.js b/test/built-ins/RegExp/S15.10.1_A1_T11.js index fc9c257903..c08950dee7 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T11.js @@ -9,9 +9,9 @@ description: Tested RegExp is "?a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a"))); + throw new Test262Error('#1.1: new RegExp("?a") throw SyntaxError. Actual: ' + (new RegExp("?a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("?a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T12.js b/test/built-ins/RegExp/S15.10.1_A1_T12.js index cfaa01bbfb..1a6fb3fc14 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T12.js @@ -9,9 +9,9 @@ description: Tested RegExp is "??a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a"))); + throw new Test262Error('#1.1: new RegExp("??a") throw SyntaxError. Actual: ' + (new RegExp("??a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("??a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T13.js b/test/built-ins/RegExp/S15.10.1_A1_T13.js index 44d78f511e..9575c08edb 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T13.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1}{1,}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}"))); + throw new Test262Error('#1.1: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{1}{1,}"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("x{1}{1,}") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T14.js b/test/built-ins/RegExp/S15.10.1_A1_T14.js index bd04b49807..62d1db6f52 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T14.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,2}{1}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}"))); + throw new Test262Error('#1.1: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,2}{1}"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("x{1,2}{1}") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T15.js b/test/built-ins/RegExp/S15.10.1_A1_T15.js index 246027320f..3c1265ec56 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T15.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{1,}{1}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}"))); + throw new Test262Error('#1.1: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (new RegExp("x{1,}{1}"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("x{1,}{1}") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T16.js b/test/built-ins/RegExp/S15.10.1_A1_T16.js index 0b27a88450..e2ba74cabb 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T16.js @@ -9,9 +9,9 @@ description: Tested RegExp is "x{0,1}{1,}" //CHECK#1 try { - $ERROR('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}"))); + throw new Test262Error('#1.1: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (new RegExp("x{0,1}{1,}"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("x{0,1}{1,}") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T2.js b/test/built-ins/RegExp/S15.10.1_A1_T2.js index d461df5c20..70eaedc47d 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T2.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a***" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***"))); + throw new Test262Error('#1.1: new RegExp("a***") throw SyntaxError. Actual: ' + (new RegExp("a***"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a***") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T3.js b/test/built-ins/RegExp/S15.10.1_A1_T3.js index 5d3eb8afa1..2d87505fb5 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T3.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a++" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++"))); + throw new Test262Error('#1.1: new RegExp("a++") throw SyntaxError. Actual: ' + (new RegExp("a++"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a++") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T4.js b/test/built-ins/RegExp/S15.10.1_A1_T4.js index 3be64a51cb..6dc03c99ac 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T4.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a+++" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++"))); + throw new Test262Error('#1.1: new RegExp("a+++") throw SyntaxError. Actual: ' + (new RegExp("a+++"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a+++") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T5.js b/test/built-ins/RegExp/S15.10.1_A1_T5.js index 58130c947c..49d030a737 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T5.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a???" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???"))); + throw new Test262Error('#1.1: new RegExp("a???") throw SyntaxError. Actual: ' + (new RegExp("a???"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a???") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T6.js b/test/built-ins/RegExp/S15.10.1_A1_T6.js index 68be6d283a..c6237b8c8f 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T6.js @@ -9,9 +9,9 @@ description: Tested RegExp is "a????" //CHECK#1 try { - $ERROR('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????"))); + throw new Test262Error('#1.1: new RegExp("a????") throw SyntaxError. Actual: ' + (new RegExp("a????"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a????") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T7.js b/test/built-ins/RegExp/S15.10.1_A1_T7.js index adfd0967a5..be112b4b0d 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T7.js @@ -9,9 +9,9 @@ description: Tested RegExp is "*a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a"))); + throw new Test262Error('#1.1: new RegExp("*a") throw SyntaxError. Actual: ' + (new RegExp("*a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("*a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T8.js b/test/built-ins/RegExp/S15.10.1_A1_T8.js index 1d3e53b57e..6fe823b8ce 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T8.js @@ -9,9 +9,9 @@ description: Tested RegExp is "**a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a"))); + throw new Test262Error('#1.1: new RegExp("**a") throw SyntaxError. Actual: ' + (new RegExp("**a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("**a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.1_A1_T9.js b/test/built-ins/RegExp/S15.10.1_A1_T9.js index 91cbdc7f9b..4f520d5696 100644 --- a/test/built-ins/RegExp/S15.10.1_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.1_A1_T9.js @@ -9,9 +9,9 @@ description: Tested RegExp is "+a" //CHECK#1 try { - $ERROR('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a"))); + throw new Test262Error('#1.1: new RegExp("+a") throw SyntaxError. Actual: ' + (new RegExp("+a"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("+a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js index 9af6c18ed8..45fd18d7af 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A1.1_T1.js @@ -12,11 +12,11 @@ description: Use \t in RegExp and \u0009 in tested string //CHECK#1 var arr = /\t/.exec("\u0009"); if ((arr === null) || (arr[0] !== "\u0009")) { - $ERROR('#1: var arr = /\\t/.exec("\\u0009"); arr[0] === "\\u0009". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\t/.exec("\\u0009"); arr[0] === "\\u0009". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\t\t/.exec("a\u0009\u0009b"); if ((arr === null) || (arr[0] !== "\u0009\u0009")) { - $ERROR('#2: var arr = /\\t\\t/.exec("a\\u0009\\u0009b"); arr[0] === "\\u0009\\u0009". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\t\\t/.exec("a\\u0009\\u0009b"); arr[0] === "\\u0009\\u0009". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js index d360fe86eb..a6e201d3fa 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A1.2_T1.js @@ -12,11 +12,11 @@ description: Use \n in RegExp and \u000A in tested string //CHECK#1 var arr = /\n/.exec("\u000A"); if ((arr === null) || (arr[0] !== "\u000A")) { - $ERROR('#1: var arr = /\\n/.exec("\\u000A"); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\n/.exec("\\u000A"); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\n\n/.exec("a\u000A\u000Ab"); if ((arr === null) || (arr[0] !== "\u000A\u000A")) { - $ERROR('#2: var arr = /\\n\\n/.exec("a\\u000A\\u000Ab"); arr[0] === "\\u000A\\u000A". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\n\\n/.exec("a\\u000A\\u000Ab"); arr[0] === "\\u000A\\u000A". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js index 4abac2d819..3b0e954e19 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A1.3_T1.js @@ -12,11 +12,11 @@ description: Use \v in RegExp and \u000B in tested string //CHECK#1 var arr = /\v/.exec("\u000B"); if ((arr === null) || (arr[0] !== "\u000B")) { - $ERROR('#1: var arr = /\\v/.exec("\\u000B"); arr[0] === "\\u000B". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\v/.exec("\\u000B"); arr[0] === "\\u000B". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\v\v/.exec("a\u000B\u000Bb"); if ((arr === null) || (arr[0] !== "\u000B\u000B")) { - $ERROR('#2: var arr = /\\v\\v/.exec("a\\u000B\\u000Bb"); arr[0] === "\\u000B\\u000B". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\v\\v/.exec("a\\u000B\\u000Bb"); arr[0] === "\\u000B\\u000B". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js index c246595a28..d9e33f1112 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A1.4_T1.js @@ -12,11 +12,11 @@ description: Use \f in RegExp and \u000C in tested string //CHECK#1 var arr = /\f/.exec("\u000C"); if ((arr === null) || (arr[0] !== "\u000C")) { - $ERROR('#1: var arr = /\\f/.exec("\\u000C"); arr[0] === "\\u000C". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\f/.exec("\\u000C"); arr[0] === "\\u000C". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\f\f/.exec("a\u000C\u000Cb"); if ((arr === null) || (arr[0] !== "\u000C\u000C")) { - $ERROR('#2: var arr = /\\f\\f/.exec("a\\u000C\\u000Cb"); arr[0] === "\\u000C\\u000C". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\f\\f/.exec("a\\u000C\\u000Cb"); arr[0] === "\\u000C\\u000C". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js b/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js index 87c3b8efff..62fe9bbe2a 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A1.5_T1.js @@ -12,11 +12,11 @@ description: Use \r in RegExp and \u000D in tested string //CHECK#1 var arr = /\r/.exec("\u000D"); if ((arr === null) || (arr[0] !== "\u000D")) { - $ERROR('#1: var arr = /\\r/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\r/.exec("\\u000D"); arr[0] === "\\u000D". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\r\r/.exec("a\u000D\u000Db"); if ((arr === null) || (arr[0] !== "\u000D\u000D")) { - $ERROR('#2: var arr = /\\r\\r/.exec("a\\u000D\\u000Db"); arr[0] === "\\u000D\\u000D". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\r\\r/.exec("a\\u000D\\u000Db"); arr[0] === "\\u000D\\u000D". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js index a12c544b13..6387f62ae9 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T1.js @@ -18,5 +18,5 @@ for (var alpha = 0x0041; alpha <= 0x005A; alpha++) { } if (result !== true) { - $ERROR('#1: CharacterEscape :: c A - Z'); + throw new Test262Error('#1: CharacterEscape :: c A - Z'); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js index c2fb1bd6ec..720ac8c18e 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A2.1_T2.js @@ -18,5 +18,5 @@ for (var alpha = 0x0061; alpha <= 0x007A; alpha++) { } if (result !== true) { - $ERROR('#1: CharacterEscape :: c a - z'); + throw new Test262Error('#1: CharacterEscape :: c a - z'); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js index 3a7049b724..906ddd7333 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T1.js @@ -10,23 +10,23 @@ description: Tested string include equal unicode symbols //CHECK#0 var arr = /\x00/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { - $ERROR('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); + throw new Test262Error('#0: var arr = /\\x00/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#1 var arr = /\x01/.exec("\u0001"); if ((arr === null) || (arr[0] !== "\u0001")) { - $ERROR('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\x01/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\x0A/.exec("\u000A"); if ((arr === null) || (arr[0] !== "\u000A")) { - $ERROR('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\x0A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); } //CHECK#3 var arr = /\xFF/.exec("\u00FF"); if ((arr === null) || (arr[0] !== "\u00FF")) { - $ERROR('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); + throw new Test262Error('#3: var arr = /\\xFF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js index 3f99f9eefa..524415ab03 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A3.1_T2.js @@ -19,7 +19,7 @@ for (var index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: ENGLISH CAPITAL ALPHABET'); + throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET'); } //CHECK#61-7A @@ -34,5 +34,5 @@ for (index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: english small alphabet'); + throw new Test262Error('#1: english small alphabet'); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js index 3d84b92163..f310f22f4f 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T1.js @@ -12,35 +12,35 @@ description: RegExp and tested string include uncode symbols //CHECK#0 var arr = /\u0000/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { - $ERROR('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); + throw new Test262Error('#0: var arr = /\\u0000/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#1 var arr = /\u0001/.exec("\u0001"); if ((arr === null) || (arr[0] !== "\u0001")) { - $ERROR('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\u0001/.exec(\\u0001); arr[0] === "\\u0001". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = /\u000A/.exec("\u000A"); if ((arr === null) || (arr[0] !== "\u000A")) { - $ERROR('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = /\\u000A/.exec(\\u000A); arr[0] === "\\u000A". Actual. ' + (arr && arr[0])); } //CHECK#3 var arr = /\u00FF/.exec("\u00FF"); if ((arr === null) || (arr[0] !== "\u00FF")) { - $ERROR('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); + throw new Test262Error('#3: var arr = /\\u00FF/.exec(\\u00FF); arr[0] === "\\u00FF". Actual. ' + (arr && arr[0])); } //CHECK#4 var arr = /\u0FFF/.exec("\u0FFF"); if ((arr === null) || (arr[0] !== "\u0FFF")) { - $ERROR('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0])); + throw new Test262Error('#4: var arr = /\\u0FFF/.exec(\\u0FFF); arr[0] === "\\u0FFF". Actual. ' + (arr && arr[0])); } //CHECK#5 var arr = /\uFFFF/.exec("\uFFFF"); if ((arr === null) || (arr[0] !== "\uFFFF")) { - $ERROR('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0])); + throw new Test262Error('#5: var arr = /\\uFFFF/.exec(\\uFFFF); arr[0] === "\\uFFFF". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js index 0e0ed3092c..156eafb0fe 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T2.js @@ -23,7 +23,7 @@ for (var index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: ENGLISH CAPITAL ALPHABET'); + throw new Test262Error('#1: ENGLISH CAPITAL ALPHABET'); } //CHECK#61-7A @@ -38,5 +38,5 @@ for (index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: english small alphabet'); + throw new Test262Error('#1: english small alphabet'); } diff --git a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js index 0b2c0e38ad..efa6f82a8e 100644 --- a/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.10_A4.1_T3.js @@ -23,7 +23,7 @@ for (var index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: RUSSIAN CAPITAL ALPHABET'); + throw new Test262Error('#1: RUSSIAN CAPITAL ALPHABET'); } //CHECK#0430-044F, 0451 @@ -38,5 +38,5 @@ for (index = 0; index < hex.length; index++) { } if (result !== true) { - $ERROR('#1: russian small alphabet'); + throw new Test262Error('#1: russian small alphabet'); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js index d60ab2f73b..776365800a 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T1.js @@ -12,11 +12,11 @@ description: > //CHECK#1 var arr = /\0/.exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { - $ERROR('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\0/.exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } //CHECK#2 var arr = (new RegExp("\\0")).exec("\u0000"); if ((arr === null) || (arr[0] !== "\u0000")) { - $ERROR('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); + throw new Test262Error('#2: var arr = (new RegExp("\\0")).exec(\\u0000); arr[0] === "\\u0000". Actual. ' + (arr && arr[0])); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T4.js b/test/built-ins/RegExp/S15.10.2.11_A1_T4.js index 2f001117fa..48ff318e52 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T4.js @@ -11,10 +11,10 @@ var arr = /(A)\1/.exec("AA"); //CHECK#1 if ((arr === null) || (arr[0] !== "AA")) { - $ERROR('#1: var arr = (/(A)\\1/.exec("AA")); arr[0] === "AA". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = (/(A)\\1/.exec("AA")); arr[0] === "AA". Actual. ' + (arr && arr[0])); } //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { - $ERROR('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); + throw new Test262Error('#2: var arr = (/(A)\\1/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T5.js b/test/built-ins/RegExp/S15.10.2.11_A1_T5.js index 9dce0c92a6..9cbdba5167 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T5.js @@ -11,10 +11,10 @@ var arr = /\1(A)/.exec("AA"); //CHECK#1 if ((arr === null) || (arr[0] !== "A")) { - $ERROR('#1: var arr = (/\\1(A)/.exec("AA")); arr[0] === "A". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = (/\\1(A)/.exec("AA")); arr[0] === "A". Actual. ' + (arr && arr[0])); } //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { - $ERROR('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); + throw new Test262Error('#2: var arr = (/\\1(A)/.exec("AA")); arr[1] === "A". Actual. ' + (arr && arr[1])); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T6.js b/test/built-ins/RegExp/S15.10.2.11_A1_T6.js index 3992a6a23a..c936784aae 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T6.js @@ -11,15 +11,15 @@ var arr = /(A)\1(B)\2/.exec("AABB"); //CHECK#1 if ((arr === null) || (arr[0] !== "AABB")) { - $ERROR('#1: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[0] === "AABB". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[0] === "AABB". Actual. ' + (arr && arr[0])); } //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { - $ERROR('#2: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[1] === "A". Actual. ' + (arr && arr[1])); + throw new Test262Error('#2: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[1] === "A". Actual. ' + (arr && arr[1])); } //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { - $ERROR('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); + throw new Test262Error('#3: var arr = /(A)\\1(B)\\2/.exec("AABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T7.js b/test/built-ins/RegExp/S15.10.2.11_A1_T7.js index 9ed378dd83..7691d0232c 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T7.js @@ -11,15 +11,15 @@ var arr = /\1(A)(B)\2/.exec("ABB"); //CHECK#1 if ((arr === null) || (arr[0] !== "ABB")) { - $ERROR('#1: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[0] === "ABB". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[0] === "ABB". Actual. ' + (arr && arr[0])); } //CHECK#2 if ((arr === null) || (arr[1] !== "A")) { - $ERROR('#2: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[1] === "A". Actual. ' + (arr && arr[1])); + throw new Test262Error('#2: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[1] === "A". Actual. ' + (arr && arr[1])); } //CHECK#3 if ((arr === null) || (arr[2] !== "B")) { - $ERROR('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); + throw new Test262Error('#3: var arr = /\\1(A)(B)\\2/.exec("ABB"); arr[2] === "B". Actual. ' + (arr && arr[2])); } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T8.js b/test/built-ins/RegExp/S15.10.2.11_A1_T8.js index f35711ddf0..7f99064dc7 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T8.js @@ -11,12 +11,12 @@ var arr = /((((((((((A))))))))))\1\2\3\4\5\6\7\8\9\10/.exec("AAAAAAAAAAA"); //CHECK#1 if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) { - $ERROR('#1: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0])); } for (var i = 1; i <= 10; i++) { //CHECK#i if ((arr === null) || (arr[i] !== "A")) { - $ERROR('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); + throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\1\\2\\3\\4\\5\\6\\7\\8\\9\\10/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } } diff --git a/test/built-ins/RegExp/S15.10.2.11_A1_T9.js b/test/built-ins/RegExp/S15.10.2.11_A1_T9.js index fc8806ae5c..3860bf11cf 100644 --- a/test/built-ins/RegExp/S15.10.2.11_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.11_A1_T9.js @@ -11,12 +11,12 @@ var arr = /((((((((((A))))))))))\10\9\8\7\6\5\4\3\2\1/.exec("AAAAAAAAAAA"); //CHECK#1 if ((arr === null) || (arr[0] !== "AAAAAAAAAAA")) { - $ERROR('#1: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0])); + throw new Test262Error('#1: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[0] === "AAAAAAAAAAA". Actual. ' + (arr && arr[0])); } for (var i = 1; i <= 10; i++) { //CHECK#i if ((arr === null) || (arr[i] !== "A")) { - $ERROR('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); + throw new Test262Error('#2: var arr = /((((((((((A))))))))))\\10\\9\\8\\7\\6\\5\\4\\3\\2\\1/.exec("AAAAAAAAAAA"); arr[' + i + '] === "A". Actual. ' + (arr && arr[i])); } } diff --git a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js index e0b1289c2a..3c15b8daf6 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A3_T5.js @@ -12,7 +12,7 @@ description: non-w //CHECK#1 var non_w = "\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"'; if (/\w/.exec(non_w) !== null) { - $ERROR('#1: non-w'); + throw new Test262Error('#1: non-w'); } //CHECK#2 @@ -24,5 +24,5 @@ while (regexp_w.exec(non_W) !== null) { } if (non_W.length !== k) { - $ERROR('#2: non-W'); + throw new Test262Error('#2: non-W'); } diff --git a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js index e1113ee2a5..873a96b7a8 100644 --- a/test/built-ins/RegExp/S15.10.2.12_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.12_A4_T5.js @@ -18,11 +18,11 @@ while (regexp_W.exec(non_w) !== null) { } if (non_w.length !== k) { - $ERROR('#1: non-w'); + throw new Test262Error('#1: non-w'); } //CHECK#2 var non_W = "_0123456789_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; if (/\W/.exec(non_W) !== null) { - $ERROR('#2: non-W'); + throw new Test262Error('#2: non-W'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js index ad99d46040..ac06addade 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T1.js @@ -14,5 +14,5 @@ var __executed = /[]a/.test("\0a\0a");; //CHECK#1 if (__executed) { - $ERROR('#1: /[]a/.test("\\0a\\0a") === false'); + throw new Test262Error('#1: /[]a/.test("\\0a\\0a") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js index 808957c864..a64c228532 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T10.js @@ -18,22 +18,22 @@ __expected.input = "\n\n\abc324234\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-c\\d]+/.exec("\\n\\n\\abc324234\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js index bbc3eea3c5..7309e495b0 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T11.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ab[.]?c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ab[.]?c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ab[.]?c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ab[.]?c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js index 717f4e3a8e..002104e313 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T12.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[b]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[b]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[b]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[b]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js index 118e97754f..ebfc4c975e 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T13.js @@ -20,22 +20,22 @@ __expected.input = "a1b b2c c3d def f4g"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z][^1-9][a-z]/.exec("a1b b2c c3d def f4g"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js index b072447884..deb0472442 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T14.js @@ -18,22 +18,22 @@ __expected.input = "123*&$abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[*&$]{3}/.exec("123*&$abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js index b425136a75..4763e85559 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T15.js @@ -18,22 +18,22 @@ __expected.input = "line1\nline2"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[\\d][\\n][^\\d]/.exec("line1\\nline2"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js index 8c56381a44..0bedac8111 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T17.js @@ -14,5 +14,5 @@ var __executed = /[]/.exec("a[b\n[]\tc]d"); //CHECK#1 if (__executed !== null) { - $ERROR('#1: /[]/.exec("a[b\\n[]\\tc]d") === false'); + throw new Test262Error('#1: /[]/.exec("a[b\\n[]\\tc]d") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js index 7f1b7a8f3f..e90b7b43ed 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T2.js @@ -14,5 +14,5 @@ var __executed = /a[]/.test("\0a\0a");; //CHECK#1 if (__executed) { - $ERROR('#1: /a[]/.test("\\0a\\0a") === false'); + throw new Test262Error('#1: /a[]/.test("\\0a\\0a") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js index 1b65af0b9c..946921253b 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T3.js @@ -18,22 +18,22 @@ __expected.input = "qYqy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("qYqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js index 5db2c8a2fa..8b2e3db2df 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T4.js @@ -18,22 +18,22 @@ __expected.input = "tqaqy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqaqy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js index 1e146ed67f..87a8c8a386 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T5.js @@ -18,22 +18,22 @@ __expected.input = "tqa\t qy "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /q[ax-zb](?=\\s+)/.exec("tqa\\t qy "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js index 41fa114e9b..5654657ea4 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T6.js @@ -18,22 +18,22 @@ __expected.input = "abcde"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ab[ercst]de/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ab[ercst]de/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ab[ercst]de/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ab[ercst]de/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js index 72b8f362ba..a371351e0d 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T7.js @@ -14,5 +14,5 @@ var __executed = /ab[erst]de/.test("abcde"); //CHECK#1 if (__executed) { - $ERROR('#1: /ab[erst]de/.test("abcde") === false'); + throw new Test262Error('#1: /ab[erst]de/.test("abcde") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js index 2e9192931a..863e630036 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T8.js @@ -18,22 +18,22 @@ __expected.input = "abcdefghijkl"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[d-h]+/.exec("abcdefghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js index 7ea19db232..a01e6ec408 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.13_A1_T9.js @@ -18,22 +18,22 @@ __expected.input = "abc6defghijkl"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[1234567].{2}/.exec("abc6defghijkl"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js index b17d762c47..b3e3be6dc4 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T1.js @@ -18,22 +18,22 @@ __expected.input = "a\naba"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^]a/m.exec("a\\naba"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^]a/m.exec("a\\naba"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^]a/m.exec("a\\naba"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^]a/m.exec("a\\naba"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js index b5fa6aa780..27ccca4435 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T2.js @@ -18,22 +18,22 @@ __expected.input = " a\t\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[^]/.exec(" a\\t\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[^]/.exec(" a\\t\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[^]/.exec(" a\\t\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[^]/.exec(" a\\t\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js index abe4f9e85c..5ef30235b8 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T3.js @@ -18,22 +18,22 @@ __expected.input = "ab an az aY n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js index a300eaf42f..d3132a07c3 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T4.js @@ -18,22 +18,22 @@ __expected.input = "easy\bto\u0008ride"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^\\b]+/g.exec("easy\\bto\\u0008ride"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js index 5a52eefb46..0f0c44c80f 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T5.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[^1-9]c/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[^1-9]c/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[^1-9]c/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[^1-9]c/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js index ba59484a03..0a51307f7f 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T6.js @@ -14,5 +14,5 @@ var __executed = /a[^b]c/.test("abc"); //CHECK#1 if (__executed) { - $ERROR('#1: /a[^b]c/.test("abc") === false'); + throw new Test262Error('#1: /a[^b]c/.test("abc") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js index b1f4c7f73a..dafab50497 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T7.js @@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^a-z]{4}/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js index ae78004355..2a7e64c26f 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.13_A2_T8.js @@ -18,22 +18,22 @@ __expected.input = "abc#$%def%&*@ghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^]/.exec("abc#$%def%&*@ghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js index 866a2190e1..d5425ff1a2 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T1.js @@ -15,22 +15,22 @@ __expected.input = "abc\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /.[\\b]./.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /.[\\b]./.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js index 4eb9e7140e..b3ea3c1ab6 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T2.js @@ -15,22 +15,22 @@ __expected.input = "abc\b\b\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /c[\\b]{3}d/.exec("abc\\b\\b\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js index 6880d52e00..9dd0ad0d0a 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T3.js @@ -15,22 +15,22 @@ __expected.input = "abc\bdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abc\\bdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js index 9ddad9ee7e..c1ca56e350 100644 --- a/test/built-ins/RegExp/S15.10.2.13_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.13_A3_T4.js @@ -15,22 +15,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^\\[\\b\\]]+/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js index 8bd881ecd4..0f408e6134 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T1.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a"))); + throw new Test262Error('#1.1: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-ac-e]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-ac-e]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js index 7d0fb22e31..108bf0a514 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T10.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\10b-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\10b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js index 0072be9411..dcdd702b77 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T11.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\bd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js index 5a4e4c3916..8a0fcedfa6 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T12.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Bd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\Bd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js index db3165b873..b4e15af2a0 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T13.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\td-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\td-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js index 2b47b233cf..ff000c2269 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T14.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\nd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\nd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js index 8a25edacd1..52238e34f5 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T15.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\vd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\vd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js index a9ba20a5fe..2581c4edc1 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T16.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\fd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\fd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js index 212c5454b0..467943acba 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T17.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\rd-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\rd-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js index 1990ea775d..ae2e9059fc 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T18.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T18.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1"))); + throw new Test262Error('#1.1: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\c0001d-G]").exec("1"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\c0001d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js index 1d24078421..2092ce0116 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T19.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T19.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1"))); + throw new Test262Error('#1.1: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[\\x0061d-G]").exec("1"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\x0061d-G]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js index 63ba144039..4dc1b80406 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T2.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a"))); + throw new Test262Error('#1.1: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[a-dc-b]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[a-dc-b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js index e6b87b4885..24a2ccb1bf 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T20.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T20.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\u0061d-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\u0061d-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js index 1045301ea1..eeb08b581e 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T21.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T21.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\ad-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\ad-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js index 9b91aeeadd..ed7dcec991 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T22.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T22.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a"))); + throw new Test262Error('#1.1: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[c-eb-a]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[c-eb-a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js index 71e84fc346..20c1b33541 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T23.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T23.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\d]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\d]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js index 77f53e08c4..281fffa72f 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T24.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T24.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\D]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\D]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js index 6bce823857..c84e0aec5f 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T25.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T25.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\s]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\s]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js index 760666986b..ca5fca68b1 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T26.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T26.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\S]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\S]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js index d976e51943..2b44ab4d09 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T27.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T27.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\w]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\w]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js index 6d0b452344..2b1eb12413 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T28.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T28.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\W]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\W]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js index 62d81b0803..107112b964 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T29.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T29.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\0]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\0]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js index beebc23490..157c381ab7 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T3.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\db-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js index bdd269b9b0..950190c1a0 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T30.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T30.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a"))); + throw new Test262Error('#1.1: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[b-G\\10]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[b-G\\10]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js index e7a2232f18..e0d9d509a7 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T31.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T31.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\b]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\b]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js index 196b513db0..17014c50d3 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T32.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T32.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\B]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\B]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js index 31406ee334..27fa1e2545 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T33.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T33.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\t]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\t]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js index 02e5ec81ac..bb178a075e 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T34.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T34.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\n]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\n]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js index 3ea1242f7e..fd5e0b8e7a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T35.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T35.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\v]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\v]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js index 43c91673a3..2bab335698 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T36.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T36.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\f]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\f]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js index d074680e43..783aca232b 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T37.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T37.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\r]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\r]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js index 71bfab0906..5b184d0015 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T38.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T38.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1"))); + throw new Test262Error('#1.1: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\c0001]").exec("1"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\c0001]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js index 8ec1fa72f5..ccd4858b27 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T39.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T39.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1"))); + throw new Test262Error('#1.1: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\x0061]").exec("1"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\x0061]/.exec("1") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js index 78ed635527..22d3ce2cef 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T4.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Db-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\Db-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js index 5cb7e7a32b..feb2a0302c 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T40.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T40.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\u0061]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\u0061]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\u0061]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js index a0d365bb89..f591447c34 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T41.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T41.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\a]").exec("a"))); + throw new Test262Error('#1.1: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[d-G\\a]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[d-G\\a]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js index d2bf9c0d2a..2d0733b670 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T5.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\sb-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\sb-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js index 488bb63a08..112854d4a5 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T6.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Sb-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Sb-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\Sb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js index 0ced85fe05..b6679943e6 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T7.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\wb-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\wb-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js index 2fb0c67eb3..f1c228a56a 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T8.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Wb-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\Wb-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\Wb-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js index 03ca482e5f..1fd3b1a5a3 100644 --- a/test/built-ins/RegExp/S15.10.2.15_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.15_A1_T9.js @@ -18,9 +18,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\0b-G]").exec("a"))); + throw new Test262Error('#1.1: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (new RegExp("[\\0b-G]").exec("a"))); } catch (e) { if((e instanceof SyntaxError) !== true){ - $ERROR('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[\\0b-G]/.exec("a") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js index 5a63327d9c..dad4766a0d 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T1.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a|ab/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a|ab/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a|ab/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a|ab/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js index 86d8dc7784..e6f9800ad8 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T10.js @@ -18,22 +18,22 @@ __expected.input = "AEKeFCDab"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKeFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js index d6a7f09147..e7e63932d0 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T11.js @@ -18,22 +18,22 @@ __expected.input = "1111111111111111"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /11111|111/.exec("1111111111111111"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /11111|111/.exec("1111111111111111"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /11111|111/.exec("1111111111111111"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /11111|111/.exec("1111111111111111"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js index 6b65ab266e..d62345c9ac 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T12.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /xyz|.../.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /xyz|.../.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /xyz|.../.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /xyz|.../.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js index ce657c9b58..265b05161b 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T13.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T13.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(.)..|abc/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(.)..|abc/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(.)..|abc/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(.)..|abc/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js index bbb173b11e..1866f69f44 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T14.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T14.js @@ -18,22 +18,22 @@ __expected.input = "color: grey"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /.+: gr(a|e)y/.exec("color: grey"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js index 29393f0ad1..5a235efcc3 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T15.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T15.js @@ -20,22 +20,22 @@ __expected.input = "Hi Bob"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(Rob)|(Bob)|(Robert)|(Bobby)/.exec("Hi Bob"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js index 9ea5be2b96..f75e6873cf 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T16.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T16.js @@ -18,22 +18,22 @@ __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /()|/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /()|/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /()|/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /()|/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js index 7e660850b2..7ec57ac29a 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T17.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T17.js @@ -18,22 +18,22 @@ __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /|()/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /|()/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /|()/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /|()/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js index ece297f651..1d6e043a19 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T2.js @@ -18,22 +18,22 @@ __expected.input = "abc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /((a)|(ab))((c)|(bc))/.exec("abc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js index bcbb8b0c9f..f74d9cbb17 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T3.js @@ -20,22 +20,22 @@ __expected.input = "2, 12 and of course repeat 12"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js index 729ecc6180..385a68a474 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T4.js @@ -20,22 +20,22 @@ __expected.input = "2, 12 and 234 AND of course repeat 12"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{3}|[a-z]{4}/.exec("2, 12 and 234 AND of course repeat 12"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js index 0a29065998..1b5a8c0921 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T5.js @@ -16,5 +16,5 @@ var __executed = /\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false'); + throw new Test262Error('#1: /\\d{3}|[a-z]{4}/.test("2, 12 and 23 AND 0.00.1") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js index 86709f1fa0..262248a3ae 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T6.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCD"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ab|cd|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js index 7243bfabb1..e9f92333b9 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T7.js @@ -14,5 +14,5 @@ var __executed = /ab|cd|ef/.test("AEKFCD"); //CHECK#1 if (__executed) { - $ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false'); + throw new Test262Error('#1: /ab|cd|ef/.test("AEKFCD") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js index b5e67b726a..7c66cb409d 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T8.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCD"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCD"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js index f50659e42d..3247ac6907 100644 --- a/test/built-ins/RegExp/S15.10.2.3_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.3_A1_T9.js @@ -18,22 +18,22 @@ __expected.input = "AEKFCDab"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?:ab|cd)+|ef/i.exec("AEKFCDab"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js index c13919e911..1e61c23652 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T1.js @@ -17,22 +17,22 @@ __expected.input = "abcdefghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[a-z]{2,4}/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js index 51523e43c0..3bde0c1d30 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T2.js @@ -17,22 +17,22 @@ __expected.input = "abcdefghi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[a-z]{2,4}?/.exec("abcdefghi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js index 0604074245..cfacee10cb 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T3.js @@ -17,22 +17,22 @@ __expected.input = "aabaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec("aabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js index a5ca2b115a..ac05549495 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "zaacbbbcac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js index e67c8d9d16..fe9b6dd325 100644 --- a/test/built-ins/RegExp/S15.10.2.5_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.5_A1_T5.js @@ -17,22 +17,22 @@ __expected.input = "baaaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(a*)b\\1+/.exec("baaaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(a*)b\\1+/.exec("baaaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js index b1fc175fe5..5633781e59 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T1.js @@ -13,5 +13,5 @@ var __executed = /s$/.test("pairs\nmakes\tdouble"); //CHECK#1 if (__executed) { - $ERROR('#1: /s$/.test("pairs\\nmakes\\tdouble") === false'); + throw new Test262Error('#1: /s$/.test("pairs\\nmakes\\tdouble") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js index a019c6d1bd..72d7739ab1 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T2.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /e$/.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js index 77bdd6b53f..e5b2f30ac0 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T3.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /s$/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js index 7150d522c0..0086678caf 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^e]$/mg.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js index 77880ddb2a..8b0209692f 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A1_T5.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdoubles"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /es$/mg.exec("pairs\\nmakes\\tdoubl\\u0065s"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js index c071d80090..5943e67060 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T1.js @@ -13,5 +13,5 @@ var __executed = /^m/.test("pairs\nmakes\tdouble"); //CHECK#1 if (__executed) { - $ERROR('#1: /^m/.test("pairs\\nmakes\\tdouble") === false'); + throw new Test262Error('#1: /^m/.test("pairs\\nmakes\\tdouble") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js index c69aac7da3..ebffc480a6 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T10.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T10.js @@ -17,22 +17,22 @@ __expected.input = "abc\n123xyz"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^\\d+/m.exec("abc\\n123xyz"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js index b244925250..e76f8ea58c 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T2.js @@ -17,22 +17,22 @@ __expected.input = "pairs\nmakes\tdouble"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^m/m.exec("pairs\\nmakes\\tdouble"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js index e0e0bb42f7..22fb26e3b4 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T3.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^p[a-z]/.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js index f2aab4aa20..e36ec8d305 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T4.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^p[b-z]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js index 4ae39e2c01..1609fb8736 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T5.js @@ -19,22 +19,22 @@ __expected.input = "pairs\nmakes\tdouble\npesos"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^[^p]/m.exec("pairs\\nmakes\\tdouble\\npesos"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js index f041a8e8f0..0510be4263 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T6.js @@ -17,22 +17,22 @@ __expected.input = "abcde"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^ab/.exec("abcde"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^ab/.exec("abcde"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^ab/.exec("abcde"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^ab/.exec("abcde"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js index 5550511beb..08f556fe98 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T7.js @@ -13,5 +13,5 @@ var __executed = /^..^e/.test("ab\ncde"); //CHECK#1 if (__executed) { - $ERROR('#1: /^..^e/.test("ab\\ncde") === false'); + throw new Test262Error('#1: /^..^e/.test("ab\\ncde") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js index bd7fefa60b..27593d8691 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T8.js @@ -13,5 +13,5 @@ var __executed = /^xxx/.test("yyyyy"); //CHECK#1 if (__executed) { - $ERROR('#1: /^xxx/.test("yyyyy") === false'); + throw new Test262Error('#1: /^xxx/.test("yyyyy") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js index 3157752788..8fed2f9141 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A2_T9.js +++ b/test/built-ins/RegExp/S15.10.2.6_A2_T9.js @@ -17,22 +17,22 @@ __expected.input = "^^^x"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^\\^+/.exec("^^^x"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^\\^+/.exec("^^^x"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^\\^+/.exec("^^^x"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^\\^+/.exec("^^^x"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js index e0e29ca201..2f7b6bcc39 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T1.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\bp/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js index e4d91c3ea4..a6e9fbf089 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T10.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\brobot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js index 93fb400bcb..798cbfc074 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T11.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\b\\w{5}\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js index fb1255f5da..08c4c1392a 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T12.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\bop/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js index 672a36920b..7f5acff6fc 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T13.js @@ -15,5 +15,5 @@ var __executed = /op\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + throw new Test262Error('#1: /op\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js index 7eee46bf7e..e1fa64ac4e 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T14.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /e\\b/.exec("pilot\\nsoviet robot\\topenoffic\\u0065"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js index 3f9a62100b..79bd501810 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T15.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T15.js @@ -15,5 +15,5 @@ var __executed = /\be/.test("pilot\nsoviet robot\topenoffic\u0065"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false'); + throw new Test262Error('#1: /\\be/.test("pilot\\nsoviet robot\\topenoffic\\u0065") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js index 22d8ee9f9e..bbcfe454e0 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T2.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ot\\b/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js index 8522ca9ce2..6b113ec35d 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T3.js @@ -15,5 +15,5 @@ var __executed = /\bot/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false'); + throw new Test262Error('#1: /\\bot/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js index a04d59e2f1..da3bee857a 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T4.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\bso/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js index 3372ab1137..69f4d15669 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T5.js @@ -15,5 +15,5 @@ var __executed = /so\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + throw new Test262Error('#1: /so\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js index 376ac498af..ec8b695b2e 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T6.js @@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^o]t\\b/.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js index f7df232573..7d6ac94131 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T7.js @@ -19,22 +19,22 @@ __expected.input = "pilOt\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^o]t\\b/i.exec("pilOt\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js index d3311f334d..1d851e657c 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T8.js @@ -19,22 +19,22 @@ __expected.input = "pilot\nsoviet robot\topenoffice"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\bro/.exec("pilot\\nsoviet robot\\topenoffice"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js index f6f4801133..218b671422 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.6_A3_T9.js @@ -15,5 +15,5 @@ var __executed = /r\b/.test("pilot\nsoviet robot\topenoffice"); //CHECK#1 if (__executed) { - $ERROR('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); + throw new Test262Error('#1: /r\\b/.test("pilot\\nsoviet robot\\topenoffice") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js index 4f042b9004..7fdb00435d 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T1.js @@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\Bevil\\B/.exec("devils arise\\tfor\\nevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js index 0bf29b8cd9..d0ae1ccb00 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T2.js @@ -19,22 +19,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[f-z]e\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js index 09a5ec3a9a..0400ee8b49 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T3.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfOr\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\Bo\\B/i.exec("devils arise\\tfOr\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js index 51029b7895..5e35aa4b84 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T4.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\B\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js index 1c6705d59c..6d56ac2e74 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T5.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\w\\B/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js index 26125791d5..829be0a35c 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T6.js @@ -17,22 +17,22 @@ __expected.input = "devils arise\tfor\nrevil"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\B\\w/.exec("devils arise\\tfor\\nrevil"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js index d56cf6e2a1..ab02b28368 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\B[^z]{4}\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js index 32e8dfcb3b..c33658571f 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.6_A4_T8.js @@ -19,22 +19,22 @@ __expected.input = "devil arise\tforzzx\nevils"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\B\\w{4}\\B/.exec("devil arise\\tforzzx\\nevils"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js index a01a6cfe44..2d244f51d8 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A5_T1.js @@ -17,22 +17,22 @@ __expected.input = "robot"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^^^^^^^robot$$$$/.exec("robot"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js index 81ea28c7a9..e462192c9c 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A5_T2.js @@ -19,22 +19,22 @@ __expected.input = "robot wall-e"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\B\\B\\B\\B\\B\\Bbot\\b\\b\\b\\b\\b\\b\\b/.exec("robot wall-e"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js index 95c95bb792..79947b5c0b 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T1.js @@ -17,22 +17,22 @@ __expected.input = "Hello World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^.*?$/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^.*?$/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^.*?$/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^.*?$/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js index fa7c83537f..50666cafcb 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T2.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T2.js @@ -15,22 +15,22 @@ __expected.input = "Hello World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^.*?/.exec("Hello World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^.*?/.exec("Hello World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^.*?/.exec("Hello World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^.*?/.exec("Hello World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js index 1c0db1e9cc..a304bcdf75 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T3.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T3.js @@ -15,22 +15,22 @@ __expected.input = "Hello: World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^.*?(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js index bab82b143e..c2389ba4c9 100644 --- a/test/built-ins/RegExp/S15.10.2.6_A6_T4.js +++ b/test/built-ins/RegExp/S15.10.2.6_A6_T4.js @@ -15,22 +15,22 @@ __expected.input = "Hello: World"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^.*(:|$)/.exec("Hello: World"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^.*(:|$)/.exec("Hello: World"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js index 2a9de52adc..7e04e62b79 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T1.js @@ -17,22 +17,22 @@ __expected.input = "the answer is 42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the answer is 42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js index f046fb1fc5..2d9e8cb39a 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T10.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js index 3dfcfb2d97..6a60b1b7c0 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T11.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /bx{0,93}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js index 5242db8633..403396e1cb 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T12.js @@ -17,22 +17,22 @@ __expected.input = "weirwerdf"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /.{0,93}/.exec("weirwerdf"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /.{0,93}/.exec("weirwerdf"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /.{0,93}/.exec("weirwerdf"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /.{0,93}/.exec("weirwerdf"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js index 317fd309e3..f68f18b941 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T2.js @@ -13,5 +13,5 @@ var __executed = /\d{2,4}/.test("the 7 movie"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false'); + throw new Test262Error('#1: /\\d{2,4}/.test("the 7 movie") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js index d5cb2be7ba..3ea78a7d51 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T3.js @@ -19,22 +19,22 @@ __expected.input = "the 20000 Leagues Under the Sea book"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the 20000 Leagues Under the Sea book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js index 9ef9234533..6da8d0cbe7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T4.js @@ -17,22 +17,22 @@ __expected.input = "the Fahrenheit 451 book"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the Fahrenheit 451 book"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js index b430c88593..c7a2ae99c9 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T5.js @@ -17,22 +17,22 @@ __expected.input = "the 1984 novel"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("the 1984 novel"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js index 9201d4c6b1..f79f475c02 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T6.js @@ -17,22 +17,22 @@ __expected.input = "0a011b"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u0031b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js index e9af6cb757..232afdf549 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T7.js @@ -17,22 +17,22 @@ __expected.input = "0a01122b"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{2,4}/.exec("0a0\\u0031\\u003122b"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js index af586602f0..e124a1a9d0 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T8.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b{2,3}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js index 090adf085a..53cc23d94b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A1_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A1_T9.js @@ -13,5 +13,5 @@ var __executed = /b{42,93}c/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false'); + throw new Test262Error('#1: /b{42,93}c/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js index f251c5899a..1d14e8d256 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T1.js @@ -17,22 +17,22 @@ __expected.input = "CE\uFFFFL\uFFDDbox127"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\w{3}\\d?/.exec("CE\\uFFFFL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js index e29e4c24ca..2da38406df 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T2.js @@ -17,22 +17,22 @@ __expected.input = "CELL\uFFDDbox127"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\w{3}\\d?/.exec("CELL\\uFFDDbox127"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js index 586726b2ea..8a490f4008 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T3.js @@ -17,22 +17,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b{2}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js index f078746d2a..a959300d91 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A2_T4.js @@ -13,5 +13,5 @@ var __executed = /b{8}/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false'); + throw new Test262Error('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js index 6456117994..a8b66cb5cf 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T1.js @@ -17,22 +17,22 @@ __expected.input = "language java\n"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\s+java\\s+/.exec("language java\\n"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js index 2bf469f6ef..a8c8e1c082 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T10.js @@ -13,5 +13,5 @@ var __executed = /o+/.test("abcdefg"); //CHECK#1 if (__executed) { - $ERROR('#1: /o+/.test("abcdefg") === false'); + throw new Test262Error('#1: /o+/.test("abcdefg") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js index b70b42af0c..aaee0e071e 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T11.js @@ -17,22 +17,22 @@ __expected.input = "abcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /d+/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /d+/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /d+/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /d+/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js index 6dca42d241..26fe5575db 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T12.js @@ -17,22 +17,22 @@ __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(b+)(b+)(b+)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js index c471fc2d2f..ad0fc2c0a1 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T13.js @@ -17,22 +17,22 @@ __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(b+)(b*)/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js index d076e2ef59..a98f96ed7d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T14.js @@ -17,22 +17,22 @@ __expected.input = "abbbbbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b*b+/.exec("abbbbbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b*b+/.exec("abbbbbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b*b+/.exec("abbbbbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b*b+/.exec("abbbbbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js index 9db765459a..3ffd5722d4 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T2.js @@ -17,22 +17,22 @@ __expected.input = "\t java object"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\s+java\\s+/.exec("\\t java object"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js index af32a18d46..52a643ba2f 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T3.js @@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("\t javax package"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\s+java\\s+/.test("\\t javax package") === false'); + throw new Test262Error('#1: /\\s+java\\s+/.test("\\t javax package") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js index 70971cea66..8151b5ddda 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T4.js @@ -13,5 +13,5 @@ var __executed = /\s+java\s+/.test("java\n\nobject"); //CHECK#1 if (__executed) { - $ERROR('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false'); + throw new Test262Error('#1: /\\s+java\\s+/.test("java\\n\\nobject") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js index 639bd44181..61be63a924 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T5.js @@ -19,22 +19,22 @@ __expected.input = "x 2 ff 55 x2 as1 z12 abc12.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z]+\\d+/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js index 148747555c..1df080daa1 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T6.js @@ -17,22 +17,22 @@ __expected.input = "__abc123.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z]+\\d+/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js index 65a1882128..75bee83204 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T7.js @@ -19,22 +19,22 @@ __expected.input = "x 2 ff 55 x2 as1 z12 abc12.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z]+(\\d+)/.exec("x 2 ff 55 x2 as1 z12 abc12.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js index 0ff489005a..871f61d01b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T8.js @@ -17,22 +17,22 @@ __expected.input = "__abc123.0"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z]+(\\d+)/.exec("__abc123.0"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js index 26e67e6ed7..e3c599d667 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A3_T9.js @@ -17,22 +17,22 @@ __expected.input = "abcdddddefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /d+/.exec("abcdddddefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /d+/.exec("abcdddddefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /d+/.exec("abcdddddefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /d+/.exec("abcdddddefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js index c23c145b84..9a70be4a3b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T1.js @@ -17,22 +17,22 @@ __expected.input = '"beast"-nickname'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^"]*/.exec(\'"beast"-nickname\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js index acd87fdf8d..be158727a1 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T10.js @@ -17,22 +17,22 @@ __expected.input = 'abcddddefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /d*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /d*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /d*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /d*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js index a3e19636c0..7dd3e15e9d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T11.js @@ -17,22 +17,22 @@ __expected.input = 'abcddddefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /cd*/.exec(\'abcddddefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /cd*/.exec(\'abcddddefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /cd*/.exec(\'abcddddefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /cd*/.exec(\'abcddddefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js index 521ccb5744..11c8169563 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T12.js @@ -17,22 +17,22 @@ __expected.input = 'abcdefg'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /cx*d/.exec(\'abcdefg\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /cx*d/.exec(\'abcdefg\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /cx*d/.exec(\'abcdefg\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /cx*d/.exec(\'abcdefg\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js index 0cdbb3ed5c..ba98d5b959 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T13.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T13.js @@ -17,22 +17,22 @@ __expected.input = 'xxxxxxx'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(x*)(x+)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js index 405d3a236c..40e5c91ac7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T14.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T14.js @@ -17,22 +17,22 @@ __expected.input = '1234567890'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(\\d*)(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js index 22e0ddcd3d..0d6c3e7223 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T15.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T15.js @@ -17,22 +17,22 @@ __expected.input = '1234567890'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(\\d*)\\d(\\d+)/.exec(\'1234567890\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js index a076f126c5..40dd92c0e7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T16.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T16.js @@ -17,22 +17,22 @@ __expected.input = 'xxxxxxx'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(x+)(x*)/.exec(\'xxxxxxx\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js index 0dc0ffed85..ce7c02a07a 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T17.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T17.js @@ -17,22 +17,22 @@ __expected.input = 'xxxxxxyyyyyy'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /x*y+$/.exec(\'xxxxxxyyyyyy\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js index 884dcd9b6c..96040b68e7 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T18.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T18.js @@ -17,22 +17,22 @@ __expected.input = 'abcdef'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[\\d]*[\\s]*bc./.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js index 17379e2906..921346cd5a 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T19.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T19.js @@ -17,22 +17,22 @@ __expected.input = 'abcdef'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /bc..[\\d]*[\\s]*/.exec(\'abcdef\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js index 4c813338d0..bfee314678 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T2.js @@ -17,22 +17,22 @@ __expected.input = 'alice said: "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice said: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js index 9b9f8cd00e..d81da4dc00 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T20.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T20.js @@ -17,22 +17,22 @@ __expected.input = 'a1b2c3'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /.*/.exec(\'a1b2c3\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /.*/.exec(\'a1b2c3\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /.*/.exec(\'a1b2c3\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /.*/.exec(\'a1b2c3\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js index 7f49b3fe75..5652a76410 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T21.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T21.js @@ -13,5 +13,5 @@ var __executed = /[xyz]*1/.test('a0.b2.c3'); //CHECK#1 if (__executed) { - $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); + throw new Test262Error('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js index a74d0d2e43..fbb4222e08 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T3.js @@ -17,22 +17,22 @@ __expected.input = "before\'i\'start"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^"]*/.exec("before\'i\'start"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^"]*/.exec("before\'i\'start"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^"]*/.exec("before\'i\'start"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^"]*/.exec("before\'i\'start"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js index bd78fde080..a4b1c78ca3 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T4.js @@ -19,22 +19,22 @@ __expected.input = 'alice \"sweep\": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice \\"sweep\\": "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js index 41a46fa766..3da9a13b9d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T5.js @@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[^"]*/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js index 1c6d375596..646423fd38 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T6.js @@ -19,22 +19,22 @@ __expected.input = 'alice "sweep": "don\'t"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice \\u0022sweep\\u0022: "don\'t"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js index 0c13f607e9..3add3401fa 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = 'alice cries out: \'don\'t\''; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out: \'don\'t\'\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js index 73cdaa3d65..120446fd3f 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T8.js @@ -15,5 +15,5 @@ var __executed = /["'][^"']*["']/.test('alice cries out: don\'t'); //CHECK#1 if (__executed) { - $ERROR('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false'); + throw new Test262Error('#1: /["\'][^"\']*["\']/.test(\'alice cries out: don\'t\') === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js index 0ae792c8be..35b8704c00 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A4_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A4_T9.js @@ -19,22 +19,22 @@ __expected.input = 'alice cries out:\"\"'; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /["\'][^"\']*["\']/.exec(\'alice cries out:\\"\\"\'); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js index 1914219cc4..5a048d0b85 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T1.js @@ -19,22 +19,22 @@ __expected.input = "state: javascript is extension of ecma script"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /java(script)?/.exec("state: javascript is extension of ecma script"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js index 21ff449c56..58443c810b 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T10.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T10.js @@ -17,22 +17,22 @@ __expected.input = "123az789"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ab?c?d?x?y?z/.exec("123az789"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js index 4a60943822..c345c402af 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T11.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T11.js @@ -17,22 +17,22 @@ __expected.input = "?????"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\??\\??\\??\\??\\??/.exec("?????"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js index 8c57773935..7ee959e892 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T12.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T12.js @@ -17,22 +17,22 @@ __expected.input = "test"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /.?.?.?.?.?.?.?/.exec("test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js index 4cb889534a..afd4f76e55 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T2.js @@ -19,22 +19,22 @@ __expected.input = "state: java and javascript are vastly different"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /java(script)?/.exec("state: java and javascript are vastly different"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js index 419d7e4e12..5014783bdb 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T3.js @@ -15,5 +15,5 @@ var __executed = /java(script)?/.test("state: both Java and JavaScript used in w //CHECK#1 if (__executed) { - $ERROR('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false'); + throw new Test262Error('#1: /java(script)?/.test("state: both Java and JavaScript used in web development") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js index ae949468d0..b15a2ad8ff 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T4.js @@ -17,22 +17,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /cd?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /cd?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /cd?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /cd?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js index 3cf99843be..d593948912 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T5.js @@ -17,22 +17,22 @@ __expected.input = "abcdef"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /cdx?e/.exec("abcdef"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /cdx?e/.exec("abcdef"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /cdx?e/.exec("abcdef"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /cdx?e/.exec("abcdef"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js index 84bdd79bd0..06a028d741 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T6.js @@ -17,22 +17,22 @@ __expected.input = "pqrstuvw"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /o?pqrst/.exec("pqrstuvw"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /o?pqrst/.exec("pqrstuvw"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js index 3cf22e3efe..0676a2d2f1 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T7.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T7.js @@ -17,22 +17,22 @@ __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /x?y?z?/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /x?y?z?/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /x?y?z?/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /x?y?z?/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js index efebcaac4f..5b27963148 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T8.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T8.js @@ -17,22 +17,22 @@ __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /x?ay?bz?c/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /x?ay?bz?c/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /x?ay?bz?c/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /x?ay?bz?c/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js index 008fe13a96..912d48fb22 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A5_T9.js +++ b/test/built-ins/RegExp/S15.10.2.7_A5_T9.js @@ -17,22 +17,22 @@ __expected.input = "abbbbc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b?b?b?b/.exec("abbbbc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b?b?b?b/.exec("abbbbc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b?b?b?b/.exec("abbbbc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b?b?b?b/.exec("abbbbc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js index c4209a18f3..53f7ab043d 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T1.js @@ -18,22 +18,22 @@ __expected.input = "aaabbbbcccddeeeefffff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /b{2,}c/.exec("aaabbbbcccddeeeefffff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js index 774bd23cf8..4448aaed2f 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T2.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T2.js @@ -14,5 +14,5 @@ var __executed = /b{8,}c/.test("aaabbbbcccddeeeefffff"); //CHECK#1 if (__executed) { - $ERROR('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false'); + throw new Test262Error('#1: /b{8,}c/.test("aaabbbbcccddeeeefffff") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js index 2d77da10f4..f83870be1c 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T3.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T3.js @@ -18,22 +18,22 @@ __expected.input = "wqe456646dsff"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\d{1,}/.exec("wqe456646dsff"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js index e5268e2962..b172999e08 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T4.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T4.js @@ -18,22 +18,22 @@ __expected.input = "123123"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(123){1,}/.exec("123123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(123){1,}/.exec("123123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(123){1,}/.exec("123123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(123){1,}/.exec("123123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js index a8d8313a8a..e02b660ef0 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T5.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T5.js @@ -18,22 +18,22 @@ __expected.input = "123123x123"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(123){1,}x\\1\\/.exec("123123x123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(123){1,}x\\1/.exec("123123x123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js index 2040ef9c68..61f282c3e9 100644 --- a/test/built-ins/RegExp/S15.10.2.7_A6_T6.js +++ b/test/built-ins/RegExp/S15.10.2.7_A6_T6.js @@ -18,22 +18,22 @@ __expected.input = "xxxxxxx"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /x{1,2}x{1,}/.exec("xxxxxxx"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js index ccbc98197b..84c1a8640e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T1.js @@ -18,22 +18,22 @@ __expected.input = "baaabac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?=(a+))/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?=(a+))/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?=(a+))/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?=(a+))/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js index 197d3de34f..5866f825ce 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T2.js @@ -18,22 +18,22 @@ __expected.input = "baaabac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?=(a+))a*b\\1/.exec("baaabac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js index 4ee93307e0..7b166606a8 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T3.js @@ -20,22 +20,22 @@ __expected.input = "just Javascript: the way af jedi"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("just Javascript: the way af jedi"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js index 4d598bc683..8f020dbc29 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T4.js @@ -20,22 +20,22 @@ __expected.input = "taste of java: the cookbook "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[Jj]ava([Ss]cript)?(?=\\:)/.exec("taste of java: the cookbook "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js index 3088fd08cf..e259a5ac73 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A1_T5.js @@ -16,5 +16,5 @@ var __executed = /[Jj]ava([Ss]cript)?(?=\:)/.test("rhino is JavaScript engine"); //CHECK#1 if (__executed) { - $ERROR('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false'); + throw new Test262Error('#1: /[Jj]ava([Ss]cript)?(?=\\:)/.test("rhino is JavaScript engine") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js index f4647025b3..e70a45692e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T1.js @@ -20,22 +20,22 @@ __expected.input = "baaabaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(.*?)a(?!(a+)b\\2c)\\2(.*)/.exec("baaabaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js index 99385202e7..fa70b2c302 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T10.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T10.js @@ -18,22 +18,22 @@ __expected.input = "bc"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec("bc"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec("bc"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec("bc"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec("bc"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js index 4d58e957ad..2d61c42c7e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T11.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T11.js @@ -18,22 +18,22 @@ __expected.input = "d"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec("d"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec("d"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec("d"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec("d"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js index 2e4389980f..a0d32bac69 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T2.js @@ -20,22 +20,22 @@ __expected.input = "using of JavaBeans technology"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("using of JavaBeans technology"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js index 46511a6a55..9ed52b4f67 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T3.js @@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language"); //CHECK#1 if (__executed) { - $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false'); + throw new Test262Error('#1: /Java(?!Script)([A-Z]\\w*)/.test("using of Java language") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js index d165c04ff9..87f3898465 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T4.js @@ -16,5 +16,5 @@ var __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter "); //CHECK#1 if (__executed) { - $ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); + throw new Test262Error('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js index 7f6a2c61d9..2e16e5ca6d 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T5.js @@ -20,22 +20,22 @@ __expected.input = "JavaScr oops ipt "; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /Java(?!Script)([A-Z]\\w*)/.exec("JavaScr oops ipt "); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js index 222e740fd0..d04a17ecb6 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T6.js @@ -18,22 +18,22 @@ __expected.input = "ah.info"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah.info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js index b51f7948af..5c47ae3b6e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T7.js @@ -18,22 +18,22 @@ __expected.input = "ah/info"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(\\.(?!com|org)|\\/)/.exec("ah/info"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js index c636d32d61..056e89ef7d 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T8.js @@ -14,5 +14,5 @@ var __executed = /(\.(?!com|org)|\/)/.test("ah.com"); //CHECK#1 if (__executed) { - $ERROR('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false'); + throw new Test262Error('#1: /(\\.(?!com|org)|\\/)/.test("ah.com") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js index 79067208ee..363a71fb11 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A2_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A2_T9.js @@ -18,22 +18,22 @@ __expected.input = ""; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(?!a|b)|c/.exec(""); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(?!a|b)|c/.exec(""); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(?!a|b)|c/.exec(""); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(?!a|b)|c/.exec(""); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js index 2a2b46edcd..6b644d2e24 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T1.js @@ -21,22 +21,22 @@ __expected.input = "Learning javaScript is funny, really"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Learning javaScript is funny, really"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js index 5288ce7e4d..7d23272dd3 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T10.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T10.js @@ -19,22 +19,22 @@ __expected.input = "123456123456"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(\\d{3})(\\d{3})\\1\\2/.exec("123456123456"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js index 1caea9d733..914cffa2d5 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T11.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T11.js @@ -19,22 +19,22 @@ __expected.input = "abcdefgh"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a(..(..)..)/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js index a23895599d..5db7a888ce 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T12.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T12.js @@ -19,22 +19,22 @@ __expected.input = "xabcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(a(b(c)))(d(e(f)))/.exec("xabcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js index d84b98fe35..52e1a09858 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T13.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T13.js @@ -21,22 +21,22 @@ __expected.input = "xabcdefbcefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(a(b(c)))(d(e(f)))\\2\\5/.exec("xabcdefbcefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js index 345cc11121..0ea6acbe73 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T14.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T14.js @@ -19,22 +19,22 @@ __expected.input = "abcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a(.?)b\\1c\\1d\\1/.exec("abcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js index 972ed33fa2..49f3d67979 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T15.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T15.js @@ -37,22 +37,22 @@ __expected.input = __strOriginal; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __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 = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js index 60e86bbc26..4862db74da 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T16.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T16.js @@ -35,22 +35,22 @@ __expected.input = __strOriginal; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __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 = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = new RegExp(__pattern); __executed = __re.exec(__strOriginal); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js index 67079d3cdc..2d99777efc 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T17.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T17.js @@ -30,22 +30,22 @@ __expected.input = __html; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /