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 = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __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 = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /((.*\\n?)*?)<\\/body>/i.exec(__html); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js index 16e866376f..75db65b1de 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T18.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T18.js @@ -17,5 +17,5 @@ var __expected = 'To sign up click he //CHECK#1 if (__replaced !== __expected) { - $ERROR('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'$2\'); __replaced === ' + __expected + '. Actual: ' + __replaced); + throw new Test262Error('#1: __replaced = "To sign up click |here|https:www.xxxx.org/subscribe.htm|".replace(/(\\|)([\\w\\x81-\\xff ]*)(\\|)([\\/a-z][\\w:\\/\\.]*\\.[a-z]{3,4})(\\|)/ig, \'$2\'); __replaced === ' + __expected + '. Actual: ' + __replaced); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js index 4da3e6fe53..61b709b38b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T19.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T19.js @@ -21,22 +21,22 @@ __expected.input = "Course_Creator = Test"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = 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 = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /([\\S]+([ \\t]+[\\S]+)*)[ \\t]*=[ \\t]*[\\S]+/.exec("Course_Creator = Test"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js index d65ecc0e7d..757f20fc6b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T2.js @@ -21,22 +21,22 @@ __expected.input = "Developing with Java is fun, try it"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __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("Developing with Java is fun, try it"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __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("Developing with Java is fun, try it"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __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("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.exec("Developing with Java is fun, try it"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js index cd750fb9d1..a1251ccca5 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T20.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T20.js @@ -19,22 +19,22 @@ __expected.input = "AAA"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("AAA"); __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.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("AAA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js index a47a45c977..a6385f5c57 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T21.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T21.js @@ -19,22 +19,22 @@ __expected.input = "AA"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("AA"); __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.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("AA"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js index 27752d9bb9..e3b55b6ab3 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T22.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T22.js @@ -19,22 +19,22 @@ __expected.input = "A"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /^(A)?(A.*)$/.exec("A"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /^(A)?(A.*)$/.exec("A"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /^(A)?(A.*)$/.exec("A"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /^(A)?(A.*)$/.exec("A"); __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.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /^(A)?(A.*)$/.exec("A"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js index 7e974f5f0a..49dfd6a592 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T23.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T23.js @@ -23,22 +23,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AAAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js index f3c400e2b6..c255b6e00e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T24.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T24.js @@ -23,22 +23,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AAaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js index 82f567dddb..50c3a23093 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T25.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T25.js @@ -23,22 +23,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "zxcasd;fl\\\ ^AaaAAaaaf;lrlrzs"; __executed = /(A)?(A.*)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js index 4a122d15c7..5a5091f901 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T26.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T26.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "a"; __executed = /(a)?a/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "a"; __executed = /(a)?a/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js index 777aa82f82..2d1cca6bc2 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T27.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T27.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "a"; __executed = /a|(b)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "a"; __executed = /a|(b)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js index 28d9b53841..2c1c221770 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T28.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T28.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "a"; __executed = /(a)?(a)/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js index 8e028ec862..4ac349fad7 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T29.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T29.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "a"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js index f041a02b6a..a76a6e04af 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T3.js @@ -18,5 +18,5 @@ var __executed = /([Jj]ava([Ss]cript)?)\sis\s(fun\w*)/.test("Developing with Jav //CHECK#1 if (__executed) { - $ERROR('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false'); + throw new Test262Error('#1: /([Jj]ava([Ss]cript)?)\\sis\\s(fun\\w*)/.test("Developing with JavaScript is dangerous, do not try it without assistance") === false'); } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js index 3cce8f11f2..9cc90bedcc 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T30.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T30.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "ab"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js index b4614efea3..fea072ab52 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T31.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T31.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "abc"; __executed = /^([a-z]+)*[a-z]$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js index 304d4e3d8b..c266fe6bc1 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T32.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T32.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js index b59a54d646..89700b7b34 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T33.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T33.js @@ -21,22 +21,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "www.netscape.com"; __executed = /^(([a-z]+)*([a-z])\\.)+[a-z]{2,}$/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js index 24599175b8..92765c2f0b 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T4.js @@ -19,22 +19,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.8_A3_T5.js b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js index 979691b2a9..495e4131d1 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T5.js @@ -19,22 +19,22 @@ __expected.input = "abcdefg"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a(bc)d(ef)g/.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 = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a(bc)d(ef)g/.exec("abcdefg"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js index 42fb18903b..d934778225 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T6.js @@ -19,22 +19,22 @@ __expected.input = "abcdefgh"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(.{3})(.{4})/.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 = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(.{3})(.{4})/.exec("abcdefgh"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js index 6c30ce8c04..1e45af0485 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T7.js @@ -19,22 +19,22 @@ __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __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)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(aa)bcd\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js index 2edd5268b7..4de50e9cb7 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T8.js @@ -19,22 +19,22 @@ __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __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).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(aa).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js index 706298b3ce..806d967354 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A3_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A3_T9.js @@ -19,22 +19,22 @@ __expected.input = "aabcdaabcd"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __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 = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(.{2}).+\\1/.exec("aabcdaabcd"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js index 77f1a0b4cc..7628691b9d 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T1.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "abcde"; __executed = /ab.de/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js index 2d43f56b8e..cc6e478ada 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T2.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "line 1\nline 2"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js index 9f934ce591..0d2a064335 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T3.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "this is a test"; __executed = /.*a.*/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js index 105daa3b60..2796146d40 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T4.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "this is a *&^%$# test"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js index 6d69d1db3f..a8fd885881 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T5.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "...."; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "...."; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "...."; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "...."; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js index c311af54a2..7d29dd276e 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T6.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T6.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "abcdefghijklmnopqrstuvwxyz"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js index 45b1bcd812..b2d728dae2 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T7.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T7.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js index b76942c432..c607994076 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T8.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T8.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "`1234567890-=~!@#$%^&*()_+"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js index a26ce200ab..ded3e91e6a 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A4_T9.js +++ b/test/built-ins/RegExp/S15.10.2.8_A4_T9.js @@ -19,22 +19,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "|\\[{]};:\"\',<>.?/"; __executed = /.+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js index 5afd7b265c..eced711176 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.2.8_A5_T1.js @@ -18,22 +18,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "ABC def ghi"; __executed = /[a-z]+/ig.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js index 2671822ad6..9a6d6d513a 100644 --- a/test/built-ins/RegExp/S15.10.2.8_A5_T2.js +++ b/test/built-ins/RegExp/S15.10.2.8_A5_T2.js @@ -18,22 +18,22 @@ __expected.input = __string; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __string = "ABC def ghi"; __executed = /[a-z]+/.exec(__string); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js index b718e3f32d..c7ac6bf732 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T1.js @@ -20,22 +20,22 @@ __expected.input = "do you listen the the band"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __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+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\b(\\w+) \\1\\b/.exec("do you listen the the band"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js index 0ef2125624..0aee5980b4 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T2.js @@ -21,22 +21,22 @@ __expected.input = "x09x12x01x01u00FFu00FFx04x04x23"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __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 = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x01u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js index 6c3bfb0ac1..016f197391 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T3.js @@ -21,22 +21,22 @@ __expected.input = "x09x12x01x05u00FFu00FFx04x04x23"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __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 = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /([xu]\\d{2}([A-H]{2})?)\\1/.exec("x09x12x01x05u00FFu00FFx04x04x23"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js index b97e62d573..b0f6953c63 100644 --- a/test/built-ins/RegExp/S15.10.2.9_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.2.9_A1_T5.js @@ -18,22 +18,22 @@ __expected.input = "baaac"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(a*)b\\1+/.exec("baaac"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(a*)b\\1+/.exec("baaac"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(a*)b\\1+/.exec("baaac"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(a*)b\\1+/.exec("baaac"); __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("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(a*)b\\1+/.exec("baaac"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/S15.10.2_A1_T1.js b/test/built-ins/RegExp/S15.10.2_A1_T1.js index 9ebce76ca2..73ecc7c087 100644 --- a/test/built-ins/RegExp/S15.10.2_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.2_A1_T1.js @@ -80,7 +80,7 @@ try { __re.test(__html); } } catch (e) { - $ERROR('#'+index+": XML Shallow Parsing with Regular Expression: "+__patterns[index]); + throw new Test262Error('#'+index+": XML Shallow Parsing with Regular Expression: "+__patterns[index]); } // ////////////////////////////////////////////////////////////////////////////// diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js index 80e2483177..9c1d491a27 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T1.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + throw new Test262Error('#1: __re = /x/i; __instance = RegExp(__re); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js index a40609dcb7..08f8c05acb 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T2.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + throw new Test262Error('#1: __re = new RegExp; __instance = RegExp(__re, function(){}()); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js index 42fe6507e5..f3249fd6a9 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T3.js @@ -17,7 +17,7 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + throw new Test262Error('#1: __re = new RegExp(); __instance = RegExp(__re, x); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } var x; diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js index 9416e9ee79..d314864697 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T4.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + throw new Test262Error('#1: __re = RegExp(); __instance = RegExp(__re, void 0); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js index 9e826ff86d..c12a755414 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.3.1_A1_T5.js @@ -15,5 +15,5 @@ __re.indicator = 1; //CHECK#1 if (__instance.indicator !== 1) { - $ERROR('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); + throw new Test262Error('#1: __re = /\\b/m; __instance = RegExp(__re, undefined); __re.indicator = 1; __instance.indicator === 1. Actual: ' + (__instance.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js index 61e7e6874e..e340dd09e5 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A2_T1.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1"))); + throw new Test262Error('#1.1: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (RegExp(new RegExp("\d"), "1"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: RegExp(new RegExp("\\d"), "1")) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js index 51f01d47a7..9ed2e2684a 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A2_T2.js @@ -15,9 +15,9 @@ var x = 1; //CHECK#1 try { - $ERROR('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x))); + throw new Test262Error('#1.1: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (RegExp(/[a-b]?/, x))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: var x = 1; RegExp(/[a-b]?/, x) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js index 086b41c710..53509ca0c0 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.3.1_A3_T1.js @@ -14,10 +14,10 @@ var __instance = RegExp(__re, "i"); //CHECK#1 if (__instance.constructor !== RegExp) { - $ERROR('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + throw new Test262Error('#1: __re = "d+"; __instance = RegExp(__re, "i"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } //CHECK#2 if (__instance.source !== __re) { - $ERROR('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: '+ (__instance.source)); + throw new Test262Error('#2: __re = "d+"; __instance = RegExp(__re, "i"); __instance.source === __re. Actual: '+ (__instance.source)); } diff --git a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js index a65663218b..79c9a466e3 100644 --- a/test/built-ins/RegExp/S15.10.3.1_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.3.1_A3_T2.js @@ -15,10 +15,10 @@ var __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); //CHECK#1 if (__instance.constructor !== RegExp) { - $ERROR('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + throw new Test262Error('#1: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } //CHECK#2 if (__instance.source !== "[a-c]*") { - $ERROR('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source)); + throw new Test262Error('#2: __instance = RegExp({toString:function(){return "[a-c]*";}}, "gm"); __instance.source === "[a-c]*". Actual: '+ (__instance.source)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js index d038262d15..985863f14e 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T1.js @@ -14,20 +14,20 @@ var __re = new RegExp(__pattern); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: '+ (__re.source)); + throw new Test262Error('#1: __pattern = /./i; __re = new RegExp(__pattern); __re.source === __pattern.source. Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== __pattern.multiline) { - $ERROR('#2: __pattern = /./i; __re = new RegExp(__pattern); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __pattern = /./i; __re = new RegExp(__pattern); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== __pattern.global) { - $ERROR('#3: __pattern = /./i; __re = new RegExp(__pattern); __re.global === __pattern.global. Actual: ' + (__re.global)); + throw new Test262Error('#3: __pattern = /./i; __re = new RegExp(__pattern); __re.global === __pattern.global. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== __pattern.ignoreCase) { - $ERROR('#4: __pattern = /./i; __re = new RegExp(__pattern); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __pattern = /./i; __re = new RegExp(__pattern); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js index bbcfff4d93..0f2b6f375c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T2.js @@ -16,22 +16,22 @@ var __re = new RegExp(__pattern, x); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: '+ (__re.source)); + throw new Test262Error('#1: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.source === __pattern.source. Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== __pattern.multiline) { - $ERROR('#2: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== __pattern.global) { - $ERROR('#3: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.global === __pattern.global. Actual: ' + (__re.global)); + throw new Test262Error('#3: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.global === __pattern.global. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== __pattern.ignoreCase) { - $ERROR('#4: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __pattern = /\\t/m; _re = new RegExp(__pattern, x); var x; __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } var x; diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js index 21f5235241..90b19d2977 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T3.js @@ -14,20 +14,20 @@ var __re = new RegExp(__pattern, void 0); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: '+ (__re.source)); + throw new Test262Error('#1: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.source === __pattern.source. Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== __pattern.multiline) { - $ERROR('#2: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== __pattern.global) { - $ERROR('#3: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.global === __pattern.global. Actual: ' + (__re.global)); + throw new Test262Error('#3: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.global === __pattern.global. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== __pattern.ignoreCase) { - $ERROR('#4: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __pattern = /[a-b]/g; __re = new RegExp(__pattern, void 0); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js index 9585f8479e..1bc0d399ed 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T4.js @@ -14,20 +14,20 @@ var __re = new RegExp(__pattern, undefined); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: '+ (__re.source)); + throw new Test262Error('#1: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.source === __pattern.source. Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== __pattern.multiline) { - $ERROR('#2: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== __pattern.global) { - $ERROR('#3: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.global === __pattern.global. Actual: ' + (__re.global)); + throw new Test262Error('#3: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.global === __pattern.global. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== __pattern.ignoreCase) { - $ERROR('#4: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __pattern = new RegExp; __re = new RegExp(__pattern, undefined); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js index e318c03fb7..f988e38397 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A1_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A1_T5.js @@ -16,20 +16,20 @@ var __re = new RegExp(__pattern, (function(){})()); //CHECK#1 if (__re.source !== __pattern.source) { - $ERROR('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: '+ (__re.source)); + throw new Test262Error('#1: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.source === __pattern.source. Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== __pattern.multiline) { - $ERROR('#2: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.multiline === __pattern.multiline. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== __pattern.global) { - $ERROR('#3: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.global === __pattern.global. Actual: ' + (__re.global)); + throw new Test262Error('#3: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.global === __pattern.global. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== __pattern.ignoreCase) { - $ERROR('#4: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __pattern = RegExp("1?","mig"); __re = new RegExp(__pattern, (function(){})()); __re.ignoreCase === __pattern.ignoreCase. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A2_T2.js b/test/built-ins/RegExp/S15.10.4.1_A2_T2.js index 21a8f5ca16..8166a1f52c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A2_T2.js @@ -14,9 +14,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp(/1?1/mig, {}) throw SyntaxError. Actual: ' + (new RegExp(/1?1/mig, {}))); + throw new Test262Error('#1.1: new RegExp(/1?1/mig, {}) throw SyntaxError. Actual: ' + (new RegExp(/1?1/mig, {}))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp(/1?1/mig, {}) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp(/1?1/mig, {}) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T1.js b/test/built-ins/RegExp/S15.10.4.1_A3_T1.js index 8f2eb7edca..0264824bdb 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T1.js @@ -11,15 +11,15 @@ var __re = new RegExp; //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp; __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp; __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T2.js b/test/built-ins/RegExp/S15.10.4.1_A3_T2.js index 612b3bb4f9..459c23b7bc 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T2.js @@ -11,15 +11,15 @@ var __re = new RegExp(void 0); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(void 0); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(void 0); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(void 0); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(void 0); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T3.js b/test/built-ins/RegExp/S15.10.4.1_A3_T3.js index 45f6ea3627..ff1849cc22 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T3.js @@ -11,17 +11,17 @@ var __re = new RegExp(x); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(x); var x; __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(x); var x; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(x); var x; __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(x); var x; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(x); var x; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(x); var x; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } var x; diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T4.js b/test/built-ins/RegExp/S15.10.4.1_A3_T4.js index d9d9a51142..5dcb9ea2b1 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T4.js @@ -11,15 +11,15 @@ var __re = new RegExp(undefined); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(undefined); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(undefined); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(undefined); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(undefined); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js index 1fb6251a8b..966899c55e 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A3_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A3_T5.js @@ -11,15 +11,15 @@ var __re = new RegExp((function(){})()); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp((function(){})()); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp((function(){})()); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp((function(){})()); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp((function(){})()); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp((function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp((function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js index f9db74f336..dc19e079d0 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T1.js @@ -11,20 +11,20 @@ var __re = new RegExp(null, void 0); //CHECK#1 if (__re.source !== "null") { - $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); + throw new Test262Error('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(null, void 0); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(null, void 0); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(null, void 0); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(null, void 0); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T2.js b/test/built-ins/RegExp/S15.10.4.1_A4_T2.js index e62dcce3f5..20505be94d 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T2.js @@ -11,15 +11,15 @@ var __re = new RegExp(undefined, undefined); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(undefined, undefined); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(undefined, undefined); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(undefined, undefined); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(undefined, undefined); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(undefined, undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(undefined, undefined); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T3.js b/test/built-ins/RegExp/S15.10.4.1_A4_T3.js index 6d2ba7d8d5..34f642c8c4 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T3.js @@ -11,15 +11,15 @@ var __re = new RegExp({}.p, {}.q); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp({}.p, {}.q); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp({}.p, {}.q); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp({}.p, {}.q); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp({}.p, {}.q); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp({}.p, {}.q); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp({}.p, {}.q); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js index ab2f6ebf4f..976e3250ff 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T4.js @@ -11,20 +11,20 @@ var __re = new RegExp(null, void 0); //CHECK#1 if (__re.source !== "null") { - $ERROR('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); + throw new Test262Error('#1: __re = new RegExp(null, void 0); __re.source === "null". Actual: '+ (__re.source)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(null, void 0); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(null, void 0); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(null, void 0); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(null, void 0); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp(null, void 0); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js index 7fbffaa1ad..4dbe3ba1f1 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A4_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A4_T5.js @@ -11,15 +11,15 @@ var __re = new RegExp("", (function(){})()); //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp("", (function(){})()); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp("", (function(){})()); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp("", (function(){})()); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp("", (function(){})()); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.ignoreCase !== false) { - $ERROR('#4: __re = new RegExp("", (function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#4: __re = new RegExp("", (function(){})()); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js index 8aebbec678..f5d4c5e1a0 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T1.js @@ -11,9 +11,9 @@ description: Checking if using "ii" as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined,"ii"))); + throw new Test262Error('#1.1: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (new RegExp(undefined,"ii"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp(undefined,"ii") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js index 6113d779e0..21d6b74dfb 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T3.js @@ -11,9 +11,9 @@ description: Checking by using eval, try to use eval("\"migr\"") as F //CHECK#1 try { - $ERROR('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("",eval("\"migr\"")))); + throw new Test262Error('#1.1: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (new RegExp("",eval("\"migr\"")))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("",eval("\\"migr\\"")) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js index 4949563edb..47f9ca470c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T4.js @@ -11,9 +11,9 @@ description: Checking if using "z" as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b","z"))); + throw new Test262Error('#1.1: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (new RegExp("a|b","z"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("a|b","z") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js index 6cf250705b..bddec7e8e4 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T6.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T6.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".",null))); + throw new Test262Error('#1.1: new RegExp(".",null) throw SyntaxError. Actual: ' + (new RegExp(".",null))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp(".",null) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js index 6830240524..7ab18ccf76 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T7.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T7.js @@ -11,9 +11,9 @@ description: Checking if using 1.0 as F leads to throwing the correct exception //CHECK#1 try { - $ERROR('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^",1.0))); + throw new Test262Error('#1.1: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (new RegExp("^",1.0))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("^",1.0) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js index a88675aae9..263a953aa9 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T8.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T8.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|",true))); + throw new Test262Error('#1.1: new RegExp("|",true) throw SyntaxError. Actual: ' + (new RegExp("|",true))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("|",true) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js index 432b4eddd8..18a11e08ca 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A5_T9.js +++ b/test/built-ins/RegExp/S15.10.4.1_A5_T9.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup",{toString:function(){}}))); + throw new Test262Error('#1.1: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (new RegExp("$sup",{toString:function(){}}))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("$sup",{toString:function(){}}) throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js index 0ab30d722a..fff1417328 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A6_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A6_T1.js @@ -12,5 +12,5 @@ __re.toString = Object.prototype.toString; //CHECK#1 if (__re.toString() !== "[object "+"RegExp"+"]") { - $ERROR('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); + throw new Test262Error('#1: __re = new RegExp; __re.toString = Object.prototype.toString; __re.toString() === "[object "+"RegExp"+"]". Actual: ' + (__re.toString())); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js index e4d0d102e4..c0d9249dfd 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A7_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A7_T1.js @@ -17,5 +17,5 @@ RegExp.prototype.indicator = 1; //CHECK#1 if (__re.indicator !== 1) { - $ERROR('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator)); + throw new Test262Error('#1: __re = new RegExp; RegExp.prototype.indicator = 1; __re.indicator === 1. Actual: ' + (__re.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js index f3edd64f67..531d5cadd9 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A7_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A7_T2.js @@ -14,5 +14,5 @@ var __re = new RegExp(); //CHECK#1 if (RegExp.prototype.isPrototypeOf(__re) !== true) { - $ERROR('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); + throw new Test262Error('#1: __re = new RegExp(); RegExp.prototype.isPrototypeOf(__re) === true. Actual: ' + (RegExp.prototype.isPrototypeOf(__re))); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js index c1a063c854..48feb45606 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T1.js @@ -11,25 +11,25 @@ var __re = new RegExp("a|b","i"); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp("a|b","i"); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp("a|b","i"); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp("a|b","i"); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp("a|b","i"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp("a|b","i"); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js index 23dbb0d1aa..8b3fc0624d 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T10.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T10.js @@ -11,25 +11,25 @@ var __re = new RegExp(true,"m"); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp(true,"m"); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(true,"m"); __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(true,"m"); __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp(true,"m"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp(true,"m"); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js index 1e38cc3184..e0f2ed20d0 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T11.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T11.js @@ -11,25 +11,25 @@ var __re = new RegExp(Math,eval("\"g\"")); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp(Math,eval("\\"g\\"")); __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(Math,eval("\\"g\\"")); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(Math,eval("\\"g\\"")); __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp(Math,eval("\\"g\\"")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp(Math,eval("\\"g\\"")); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js index 988bd7c402..a320531dbf 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T12.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T12.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}))); + throw new Test262Error('#1.1: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp("\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}))); } catch (e) { if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("\\u0042", {toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js index e69d236f2a..e2ee2d4403 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T13.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T13.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {toString:function(){throw "intostr";}}))); + throw new Test262Error('#1.1: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (new RegExp("1", {toString:function(){throw "intostr";}}))); } catch (e) { if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("1", {toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js index ed7b3b7ce4..1afa7d6c9c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T2.js @@ -11,25 +11,25 @@ var __re = new RegExp(function(){return "a|b|[]";}(),"ig"); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp(function(){return "a|b|[]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(function(){return "a|b|[]"; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(function(){return "a|b|[]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp(function(){return "a|b|[]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp(function(){return "a|b|[]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js index 17855d660d..ac3eff9366 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T3.js @@ -13,25 +13,25 @@ var __re = new RegExp({toString:function(){return "[0-9]";}}, (function(){return //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp({toString:function(){return "[0-9]"; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp({toString:function(){return "[0-9]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp({toString:function(){return "[0-9]"; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp({toString:function(){return "[0-9]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp({toString:function(){return "[0-9]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js index e2aeb31680..84f766f772 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T4.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T4.js @@ -13,25 +13,25 @@ var __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]";}}, {to //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== true) { - $ERROR('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.multiline === true. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp({toString:void 0,valueOf:function(){return "[z-z]"; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js index c451a0df78..51450e882e 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T5.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T5.js @@ -13,25 +13,25 @@ var __re = new RegExp(new Object("abc{1}"), {toString:function(){return "";}}); //CHECK#1 if (__re.ignoreCase !== false) { - $ERROR('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.ignoreCase === false. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== false) { - $ERROR('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.global === false. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp(new Object("abc{1}"), {toString:function(){return ""; typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js index 63d049009c..9ec0f17c41 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T6.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T6.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "i"))); + throw new Test262Error('#1.1: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "i"))); } catch (e) { if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp({toString:function(){throw "intostr";}}, "i") throw "intostr". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js index a28ed37aeb..8b1b1b760c 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T7.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T7.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}))); + throw new Test262Error('#1.1: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}))); } catch (e) { if (e !== "invalof" ) { - $ERROR('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js index 7e9cea428e..7f5a1edc81 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T8.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T8.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "error"))); + throw new Test262Error('#1.1: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (new RegExp({toString:function(){throw "intostr";}}, "error"))); } catch (e) { if (e !== "intostr" ) { - $ERROR('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp({toString:function(){throw "intostr";}}, "error") throw "intostr". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js index 48746e19a3..18344160ef 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A8_T9.js +++ b/test/built-ins/RegExp/S15.10.4.1_A8_T9.js @@ -11,25 +11,25 @@ var __re = new RegExp(1, new Object("gi")); //CHECK#1 if (__re.ignoreCase !== true) { - $ERROR('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); + throw new Test262Error('#1: __re = new RegExp(1, new Object("gi")); __re.ignoreCase === true. Actual: ' + (__re.ignoreCase)); } //CHECK#2 if (__re.multiline !== false) { - $ERROR('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline)); + throw new Test262Error('#2: __re = new RegExp(1, new Object("gi")); __re.multiline === false. Actual: ' + (__re.multiline)); } //CHECK#3 if (__re.global !== true) { - $ERROR('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global)); + throw new Test262Error('#3: __re = new RegExp(1, new Object("gi")); __re.global === true. Actual: ' + (__re.global)); } //CHECK#4 if (__re.lastIndex !== 0) { - $ERROR('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = new RegExp(1, new Object("gi")); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } //CHECK#5 if (typeof __re.source === "undefined") { - $ERROR('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"'); + throw new Test262Error('#5: __re = new RegExp(1, new Object("gi")); typeof __re.source !== "undefined"'); } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js index 84f56e4cef..d0f78275b9 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T1.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T1.js @@ -11,9 +11,9 @@ description: Pattern is "??" //CHECK#1 try { - $ERROR('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??"))); + throw new Test262Error('#1.1: new RegExp("??") throw SyntaxError. Actual: ' + (new RegExp("??"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("??") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js index 49ea6f3315..27d6b1d2a7 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T2.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T2.js @@ -11,9 +11,9 @@ description: Pattern is "[{-z]" //CHECK#1 try { - $ERROR('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]"))); + throw new Test262Error('#1.1: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (new RegExp("[{-z]"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("[{-z]") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js index 0e245efe91..fdbd53bdc1 100644 --- a/test/built-ins/RegExp/S15.10.4.1_A9_T3.js +++ b/test/built-ins/RegExp/S15.10.4.1_A9_T3.js @@ -11,9 +11,9 @@ description: Pattern is "[a--z]" //CHECK#1 try { - $ERROR('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]"))); + throw new Test262Error('#1.1: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (new RegExp("[a--z]"))); } catch (e) { if ((e instanceof SyntaxError) !== true) { - $ERROR('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e)); + throw new Test262Error('#1.2: new RegExp("[a--z]") throw SyntaxError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.5_A1.js b/test/built-ins/RegExp/S15.10.5_A1.js index d048f8985a..dd819b1a26 100644 --- a/test/built-ins/RegExp/S15.10.5_A1.js +++ b/test/built-ins/RegExp/S15.10.5_A1.js @@ -9,5 +9,5 @@ description: Checking RegExp.length property //CHECK#1 if (RegExp.length !== 2) { - $ERROR('#1: RegExp.length === 2. Actual: ' + (RegExp.length)); + throw new Test262Error('#1: RegExp.length === 2. Actual: ' + (RegExp.length)); } diff --git a/test/built-ins/RegExp/S15.10.5_A2_T1.js b/test/built-ins/RegExp/S15.10.5_A2_T1.js index d32dfeb601..b8a6735263 100644 --- a/test/built-ins/RegExp/S15.10.5_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.5_A2_T1.js @@ -11,5 +11,5 @@ description: Checking Function.prototype.isPrototypeOf(RegExp) //CHECK#1 if (Function.prototype.isPrototypeOf(RegExp) !== true) { - $ERROR('#1: Function.prototype.isPrototypeOf(RegExp) === true'); + throw new Test262Error('#1: Function.prototype.isPrototypeOf(RegExp) === true'); } diff --git a/test/built-ins/RegExp/S15.10.5_A2_T2.js b/test/built-ins/RegExp/S15.10.5_A2_T2.js index 6dc911159b..48a73f55d3 100644 --- a/test/built-ins/RegExp/S15.10.5_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.5_A2_T2.js @@ -15,5 +15,5 @@ Function.prototype.indicator = 1; //CHECK#1 if (RegExp.indicator !== 1) { - $ERROR('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); + throw new Test262Error('#1: Function.prototype.indicator = 1; RegExp.indicator === 1. Actual: ' + (RegExp.indicator)); } diff --git a/test/built-ins/RegExp/S15.10.7_A1_T1.js b/test/built-ins/RegExp/S15.10.7_A1_T1.js index 32a29be58e..fd00972a3b 100644 --- a/test/built-ins/RegExp/S15.10.7_A1_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A1_T1.js @@ -9,9 +9,9 @@ description: Checking if call of RegExp instance fails //CHECK#1 try { - $ERROR('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/())); + throw new Test262Error('#1.1: /[^a]*/() throw TypeError. Actual: ' + (/[^a]*/())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: /[^a]*/() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.7_A1_T2.js b/test/built-ins/RegExp/S15.10.7_A1_T2.js index 96dfbeb1d6..8ec9c87808 100644 --- a/test/built-ins/RegExp/S15.10.7_A1_T2.js +++ b/test/built-ins/RegExp/S15.10.7_A1_T2.js @@ -9,9 +9,9 @@ description: Checking if call of RegExp("a|b","g")() fails //CHECK#1 try { - $ERROR('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b","g")())); + throw new Test262Error('#1.1: RegExp("a|b","g")() throw TypeError. Actual: ' + (RegExp("a|b","g")())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: RegExp("a|b","g")() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: RegExp("a|b","g")() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.7_A2_T1.js b/test/built-ins/RegExp/S15.10.7_A2_T1.js index 8d403ad855..71ac77d99a 100644 --- a/test/built-ins/RegExp/S15.10.7_A2_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A2_T1.js @@ -9,9 +9,9 @@ description: Checking if creating new RegExp instance fails //CHECK#1 try { - $ERROR('#1.1: new /z/() throw TypeError. Actual: ' + (new /z/())); + throw new Test262Error('#1.1: new /z/() throw TypeError. Actual: ' + (new /z/())); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new /z/() throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new /z/() throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.7_A2_T2.js b/test/built-ins/RegExp/S15.10.7_A2_T2.js index abc5b44ccf..2c9826b221 100644 --- a/test/built-ins/RegExp/S15.10.7_A2_T2.js +++ b/test/built-ins/RegExp/S15.10.7_A2_T2.js @@ -9,9 +9,9 @@ description: Checking if creating "new RegExp" instance fails //CHECK#1 try { - $ERROR('#1.1: new new RegExp throw TypeError. Actual: ' + (new new RegExp)); + throw new Test262Error('#1.1: new new RegExp throw TypeError. Actual: ' + (new new RegExp)); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: new new RegExp throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: new new RegExp throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/S15.10.7_A3_T1.js b/test/built-ins/RegExp/S15.10.7_A3_T1.js index b93fa54cde..0dcb260299 100644 --- a/test/built-ins/RegExp/S15.10.7_A3_T1.js +++ b/test/built-ins/RegExp/S15.10.7_A3_T1.js @@ -13,15 +13,15 @@ var __re = /[^a]*/; //CHECK#1 if (typeof __re !== "object") { - $ERROR('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re)); + throw new Test262Error('#1: __re = /[^a]*/; typeof __re === "object". Actual: ' + (typeof __re)); } //CHECK#1 if (__re.constructor !== RegExp) { - $ERROR('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor)); + throw new Test262Error('#2: __re = /[^a]*/; __re.constructor === RegExp. Actual: ' + (__re.constructor)); } //CHECK#3 if ((__re instanceof RegExp) !== true) { - $ERROR('#3: __re = /[^a]*/; (__re instanceof RegExp) === true'); + throw new Test262Error('#3: __re = /[^a]*/; (__re instanceof RegExp) === true'); } diff --git a/test/built-ins/RegExp/S15.10.7_A3_T2.js b/test/built-ins/RegExp/S15.10.7_A3_T2.js index 956d9e6fdf..8e2c4f36bd 100644 --- a/test/built-ins/RegExp/S15.10.7_A3_T2.js +++ b/test/built-ins/RegExp/S15.10.7_A3_T2.js @@ -13,15 +13,15 @@ var __re = new RegExp; //CHECK#1 if (typeof __re !== "object") { - $ERROR('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re)); + throw new Test262Error('#1: __re = new RegExp; typeof __re === "object". Actual: ' + (typeof __re)); } //CHECK#1 if (__re.constructor !== RegExp) { - $ERROR('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor)); + throw new Test262Error('#2: __re = new RegExp; __re.constructor === RegExp. Actual: ' + (__re.constructor)); } //CHECK#3 if ((__re instanceof RegExp) !== true) { - $ERROR('#3: __re = new RegExp; (__re instanceof RegExp) === true'); + throw new Test262Error('#3: __re = new RegExp; (__re instanceof RegExp) === true'); } diff --git a/test/built-ins/RegExp/from-regexp-like-flag-override.js b/test/built-ins/RegExp/from-regexp-like-flag-override.js index d675f151f8..a725b8fb1c 100644 --- a/test/built-ins/RegExp/from-regexp-like-flag-override.js +++ b/test/built-ins/RegExp/from-regexp-like-flag-override.js @@ -25,7 +25,7 @@ var result; Object.defineProperty(obj, 'flags', { get: function() { - $ERROR('The `flags` property value should not be referenced.'); + throw new Test262Error('The `flags` property value should not be referenced.'); } }); diff --git a/test/built-ins/RegExp/from-regexp-like-get-source-err.js b/test/built-ins/RegExp/from-regexp-like-get-source-err.js index 1c2a4e3e90..f458eed003 100644 --- a/test/built-ins/RegExp/from-regexp-like-get-source-err.js +++ b/test/built-ins/RegExp/from-regexp-like-get-source-err.js @@ -23,7 +23,7 @@ Object.defineProperty(obj, 'source', { }); Object.defineProperty(obj, 'flags', { get: function() { - $ERROR('the `flags` property should not be referenced before `source`'); + throw new Test262Error('the `flags` property should not be referenced before `source`'); } }); diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js index 3b3136cfbd..bf40aa5576 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A1.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype property //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); + throw new Test262Error('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js index a34b24306b..20dba9e7e8 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A2.js @@ -9,12 +9,12 @@ description: Checking if enumerating the RegExp.prototype property fails //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); + throw new Test262Error('#0: RegExp.hasOwnProperty(\'prototype\') === true'); } //CHECK#1 if (RegExp.propertyIsEnumerable('prototype') !== false) { - $ERROR('#1: RegExp.propertyIsEnumerable(\'prototype\') === false'); + throw new Test262Error('#1: RegExp.propertyIsEnumerable(\'prototype\') === false'); } //CHECK#2 @@ -24,5 +24,5 @@ for (var p in RegExp){ } if (count !== 0) { - $ERROR('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count=0; for (p in RegExp){ if (p==="prototype") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js index 1ad8fa95ea..f8ff881368 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A3.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] //CHECK#0 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#0: RegExp.hasOwnProperty(\'prototype\') === true'); + throw new Test262Error('#0: RegExp.hasOwnProperty(\'prototype\') === true'); } verifyNotConfigurable(RegExp, "prototype"); @@ -18,7 +18,7 @@ verifyNotConfigurable(RegExp, "prototype"); //CHECK#1 try { if (delete RegExp.prototype !== false) { - $ERROR('#1: delete RegExp.prototype === false'); + throw new Test262Error('#1: delete RegExp.prototype === false'); } } catch (e) { if (e instanceof Test262Error) throw e; @@ -27,5 +27,5 @@ try { //CHECK#2 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true'); + throw new Test262Error('#2: delete RegExp.prototype; RegExp.hasOwnProperty(\'prototype\') === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js index 48bf65f19d..0b41ddc172 100644 --- a/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js +++ b/test/built-ins/RegExp/prototype/S15.10.5.1_A4.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.hasOwnProperty('prototype') !== true) { - $ERROR('#1: RegExp.hasOwnProperty(\'prototype\') === true'); + throw new Test262Error('#1: RegExp.hasOwnProperty(\'prototype\') === true'); } var __obj = RegExp.prototype; @@ -19,5 +19,5 @@ verifyNotWritable(RegExp, "prototype", null, function(){return "shifted";}); //CHECK#2 if (RegExp.prototype !== __obj) { - $ERROR('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); + throw new Test262Error('#2: __obj = RegExp.prototype; RegExp.prototype = function(){return "shifted";}; RegExp.prototype === __obj. Actual: ' + (RegExp.prototype)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js index 1330fa46e0..8a5656f8f5 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js +++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T1.js @@ -11,5 +11,5 @@ description: Compare RegExp.prototype.constructor with RegExp //CHECK#1 if (RegExp.prototype.constructor !== RegExp) { - $ERROR('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor)); + throw new Test262Error('#1: RegExp.prototype.constructor === RegExp. Actual: ' + (RegExp.prototype.constructor)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js index be0d169577..8042493a9c 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js +++ b/test/built-ins/RegExp/prototype/S15.10.6.1_A1_T2.js @@ -17,10 +17,10 @@ var __instance = new __FACTORY; //CHECK#1 if ((__instance instanceof RegExp) !== true) { - $ERROR('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true'); + throw new Test262Error('#1: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; (__instance instanceof RegExp) === true'); } //CHECK#2 if (__instance.constructor !== RegExp) { - $ERROR('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); + throw new Test262Error('#2: __FACTORY = RegExp.prototype.constructor; __instance = new __FACTORY; __instance.constructor === RegExp. Actual: ' + (__instance.constructor)); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js index 9cf925c6b1..ff18c6537e 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js +++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T1.js @@ -11,5 +11,5 @@ description: Checking Object.prototype.isPrototypeOf(RegExp.prototype) //CHECK#1 if (Object.prototype.isPrototypeOf(RegExp.prototype) !== true) { - $ERROR('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true'); + throw new Test262Error('#1: Object.prototype.isPrototypeOf(RegExp.prototype) === true'); } diff --git a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js index 8b42feccef..cfdc591c89 100644 --- a/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js +++ b/test/built-ins/RegExp/prototype/S15.10.6_A1_T2.js @@ -15,5 +15,5 @@ Object.prototype.indicator = 1; //CHECK#1 if (RegExp.prototype.indicator !== 1) { - $ERROR('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator)); + throw new Test262Error('#1: Object.prototype.indicator = 1; RegExp.prototype.indicator === 1. Actual: ' + (RegExp.prototype.indicator)); } diff --git a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js index 9fea45f93a..43e96c3065 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/coerce-arg.js @@ -15,7 +15,7 @@ features: [Symbol.match] var obj = { valueOf: function() { - $ERROR('This method should not be invoked.'); + throw new Test262Error('This method should not be invoked.'); }, toString: function() { return 'toString value'; diff --git a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-coerce-lastindex.js b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-coerce-lastindex.js index 88acf544ae..5a614d9562 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-coerce-lastindex.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/g-match-no-coerce-lastindex.js @@ -35,7 +35,7 @@ r.exec = function() { get 0() { r.lastIndex = { valueOf: function() { - $ERROR('This function should not be invoked.'); + throw new Test262Error('This function should not be invoked.'); } }; return thisMatch; diff --git a/test/built-ins/RegExp/prototype/Symbol.matchAll/string-tostring-throws.js b/test/built-ins/RegExp/prototype/Symbol.matchAll/string-tostring-throws.js index 672ba5792c..dbb396898b 100644 --- a/test/built-ins/RegExp/prototype/Symbol.matchAll/string-tostring-throws.js +++ b/test/built-ins/RegExp/prototype/Symbol.matchAll/string-tostring-throws.js @@ -15,7 +15,7 @@ features: [Symbol.matchAll] var obj = { valueOf() { - $ERROR('This method should not be invoked.'); + throw new Test262Error('This method should not be invoked.'); }, toString() { throw new Test262Error('toString invoked'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js index dab31fc7d4..03280c7f16 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-1-coerce.js @@ -15,7 +15,7 @@ features: [Symbol.replace] var arg = { valueOf: function() { - $ERROR('This method should not be invoked.'); + throw new Test262Error('This method should not be invoked.'); }, toString: function() { return 'toString value'; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js index c98886c527..8895485f45 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/arg-2-coerce.js @@ -17,7 +17,7 @@ features: [Symbol.replace] var arg = { valueOf: function() { - $ERROR('This method should not be invoked.'); + throw new Test262Error('This method should not be invoked.'); }, toString: function() { return 'toString value'; diff --git a/test/built-ins/RegExp/prototype/Symbol.split/limit-0-bail.js b/test/built-ins/RegExp/prototype/Symbol.split/limit-0-bail.js index 04824a6b2b..5320ae35cf 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/limit-0-bail.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/limit-0-bail.js @@ -17,7 +17,7 @@ var obj = { obj.constructor[Symbol.species] = function() { return { exec: function() { - $ERROR('No match should be attempted when `limit` is `0`.'); + throw new Test262Error('No match should be attempted when `limit` is `0`.'); } }; }; diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js index 5c69cca8ef..100263292d 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A10.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { - $ERROR('#1: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } var __obj = RegExp.prototype.exec.length; @@ -19,5 +19,5 @@ verifyNotWritable(RegExp.prototype.exec, "length", null, function(){return "shif //CHECK#2 if (RegExp.prototype.exec.length !== __obj) { - $ERROR('#2: __obj = RegExp.prototype.exec.length; RegExp.prototype.exec.length = function(){return "shifted";}; RegExp.prototype.exec.length === __obj. Actual: ' + (RegExp.prototype.exec.length)); + throw new Test262Error('#2: __obj = RegExp.prototype.exec.length; RegExp.prototype.exec.length = function(){return "shifted";}; RegExp.prototype.exec.length === __obj. Actual: ' + (RegExp.prototype.exec.length)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A11.js index 5b9af15e33..ec10191ecc 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A11.js @@ -9,10 +9,10 @@ description: Checking RegExp.prototype.exec.length //CHECK#1 if (RegExp.prototype.exec.hasOwnProperty("length") !== true) { - $ERROR('#1: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } //CHECK#2 if (RegExp.prototype.exec.length !== 1) { - $ERROR('#2: RegExp.prototype.exec.length === 1. Actual: ' + (RegExp.prototype.exec.length)); + throw new Test262Error('#2: RegExp.prototype.exec.length === 1. Actual: ' + (RegExp.prototype.exec.length)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js index 1fd0f84ac8..fa70d31eba 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A12.js @@ -10,8 +10,8 @@ description: Checking RegExp.prototype.exec (/foo/).test('xfoox'); var match = new RegExp('(.|\r|\n)*','').exec()[0]; if (match === 'xfoox') { - $ERROR('#1: regExp.exec() leaks match globally'); + throw new Test262Error('#1: regExp.exec() leaks match globally'); } if (match !== 'undefined') { - $ERROR('#2: regExp.exec() must coerce absent first arg to "undefined"'); + throw new Test262Error('#2: regExp.exec() must coerce absent first arg to "undefined"'); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js index f76ef50e60..159f0f1325 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T1.js @@ -17,27 +17,27 @@ __expected.input="123"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /1|12/.exec("123"); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /1|12/.exec("123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /1|12/.exec("123"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /1|12/.exec("123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /1|12/.exec("123"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /1|12/.exec("123"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /1|12/.exec("123"); __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 = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /1|12/.exec("123"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js index 824d63114f..c8aca865bf 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T10.js @@ -17,27 +17,27 @@ __expected.input="1.01"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /1|12/.exec(1.01); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /1|12/.exec(1.01); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /1|12/.exec(1.01); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /1|12/.exec(1.01); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /1|12/.exec(1.01); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /1|12/.exec(1.01); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /1|12/.exec(1.01); __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 = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /1|12/.exec(1.01); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js index e1cbaccf11..4bcd3c4cb9 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T11.js @@ -17,27 +17,27 @@ __expected.input="1.012"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /2|12/.exec(new Number(1.012)); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /2|12/.exec(new Number(1.012)); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /2|12/.exec(new Number(1.012)); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /2|12/.exec(new Number(1.012)); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /2|12/.exec(new Number(1.012)); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /2|12/.exec(new Number(1.012)); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /2|12/.exec(new Number(1.012)); __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 = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /2|12/.exec(new Number(1.012)); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js index f019f3cebb..fe6bc48a6c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T12.js @@ -19,27 +19,27 @@ __expected.input=String(Math.PI); //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __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 = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /\\.14/.exec({toString:function(){return Math.PI}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js index 806522d574..646b9b7135 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T13.js @@ -17,27 +17,27 @@ __expected.input="true"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /t[a-b|q-s]/.exec(true); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /t[a-b|q-s]/.exec(true); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /t[a-b|q-s]/.exec(true); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /t[a-b|q-s]/.exec(true); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /t[a-b|q-s]/.exec(true); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /t[a-b|q-s]/.exec(true); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /t[a-b|q-s]/.exec(true); __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 = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /t[a-b|q-s]/.exec(true); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js index f52b8ffb8a..e1b240b6f1 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T14.js @@ -17,27 +17,27 @@ __expected.input="false"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /AL|se/.exec(new Boolean); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /AL|se/.exec(new Boolean); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /AL|se/.exec(new Boolean); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /AL|se/.exec(new Boolean); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /AL|se/.exec(new Boolean); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /AL|se/.exec(new Boolean); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /AL|se/.exec(new Boolean); __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 = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /AL|se/.exec(new Boolean); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js index 8a19ebf509..1ed3bf8da3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T15.js @@ -17,27 +17,27 @@ __expected.input="false"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /LS/i.exec({toString:function(){return false}}); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /LS/i.exec({toString:function(){return false}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /LS/i.exec({toString:function(){return false}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /LS/i.exec({toString:function(){return false}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /LS/i.exec({toString:function(){return false}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /LS/i.exec({toString:function(){return false}}); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /LS/i.exec({toString:function(){return false}}); __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 = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /LS/i.exec({toString:function(){return false}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js index a0a229e5f2..6884850a02 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T16.js @@ -11,5 +11,5 @@ description: RegExp is /undefined/ and call exec() without arguments var __re = /undefined/.exec()[0]; if (__re !== "undefined") { - $ERROR('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re)); + throw new Test262Error('#1: /undefined/.exec()[0] === "undefined". Actual: ' + (__re)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js index b8b290bc30..71d43113b7 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T17.js @@ -17,27 +17,27 @@ __expected.input="null"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /ll|l/.exec(null); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /ll|l/.exec(null); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /ll|l/.exec(null); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /ll|l/.exec(null); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /ll|l/.exec(null); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /ll|l/.exec(null); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /ll|l/.exec(null); __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 = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /ll|l/.exec(null); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js index 5095f634c7..b7585d705b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T18.js @@ -17,27 +17,27 @@ __expected.input="undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /nd|ne/.exec(undefined); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /nd|ne/.exec(undefined); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /nd|ne/.exec(undefined); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /nd|ne/.exec(undefined); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /nd|ne/.exec(undefined); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /nd|ne/.exec(undefined); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /nd|ne/.exec(undefined); __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 = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /nd|ne/.exec(undefined); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js index e5d74add5a..e6b0e776e0 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T19.js @@ -17,27 +17,27 @@ __expected.input="undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /e{1}/.exec(void 0); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /e{1}/.exec(void 0); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /e{1}/.exec(void 0); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /e{1}/.exec(void 0); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /e{1}/.exec(void 0); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /e{1}/.exec(void 0); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /e{1}/.exec(void 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 = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /e{1}/.exec(void 0); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js index 38f3be48b0..d4cc27a10b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T2.js @@ -18,27 +18,27 @@ __expected.input="123"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true'); + throw new Test262Error('#0: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __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 = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /((1)|(12))((3)|(23))/; __executed = __re.exec(new String("123"));} __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js index b6bbf42f9d..a84e2ee623 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T20.js @@ -17,28 +17,28 @@ __expected.input="undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /[a-f]d/.exec(x); var x; (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-f]d/.exec(x); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-f]d/.exec(x); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-f]d/.exec(x); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-f]d/.exec(x); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-f]d/.exec(x); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-f]d/.exec(x); var 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 = /[a-f]d/.exec(x); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-f]d/.exec(x); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js index ad82053385..0e379c1bb6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T21.js @@ -17,27 +17,27 @@ __expected.input="undefined"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /[a-z]n/.exec(function(){}()); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /[a-z]n/.exec(function(){}()); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /[a-z]n/.exec(function(){}()); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /[a-z]n/.exec(function(){}()); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /[a-z]n/.exec(function(){}()); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /[a-z]n/.exec(function(){}()); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /[a-z]n/.exec(function(){}()); __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]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /[a-z]n/.exec(function(){}()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js index f65da3263a..da8454b2f3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T3.js @@ -17,27 +17,27 @@ __expected.input="abcdefghi"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[a-z]{2,4}/.exec(new Object("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(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[a-z]{2,4}/.exec(new Object("abcdefghi")); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js index e5ecd573af..75b4929420 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T4.js @@ -19,27 +19,27 @@ __expected.input="abcdefghi"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "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({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /a[a-z]{2,4}?/.exec({toString:function(){return "abcdefghi"}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js index 2bb8b42d50..0800644e25 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T5.js @@ -20,27 +20,27 @@ __expected.input="aabaac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "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({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(aa|aabaac|ba|b|c)*/.exec({toString:function(){return {};}, valueOf:function(){return "aabaac";}}); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js index e80bc22ba0..d933c1da5e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T6.js @@ -19,27 +19,27 @@ __expected.input="zaacbbbcac"; //CHECK#0 if ((__executed instanceof Array) !== true) { - $ERROR('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); + throw new Test262Error('#0: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); (__executed instanceof Array) === true'); } //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "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((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __executed = /(z)((a+)?(b+)?(c))*/.exec((function(){return "zaacbbbcac"})()); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js index 27e416f17e..eb5bc69ba8 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T7.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}}))); + throw new Test262Error('#1.1: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (/[a-z]/.exec({toString:function(){throw "intostr"}}))); } catch (e) { if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); + throw new Test262Error('#1.2: /[a-z]/.exec({toString:function(){throw "intostr"}}) throw "intostr". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js index ee0dad0cd1..1306f3bb5b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T8.js @@ -13,9 +13,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}))); + throw new Test262Error('#1.1: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (/[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}))); } catch (e) { if (e !== "invalof") { - $ERROR('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); + throw new Test262Error('#1.2: /[a-z]/.exec({toString:void 0, valueOf:function(){throw "invalof"}}) throw "invalof". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js index 2fe4adc12d..e1d6671dc8 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A1_T9.js @@ -14,7 +14,7 @@ var __string; //CHECK#1 var __re = /1|12/; if (__re.exec(__string) !== null) { - $ERROR('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re)); + throw new Test262Error('#1: var __string; /1|12/.exec(__string) === null; function __string(){}. Actual: ' + (__re)); } function __string(){}; diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js index da9044c917..dfd0062a1c 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T1.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Object; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Object; __instance.exec = RegExp.prototype.exec. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js index d76e16ca96..73cb28d012 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T10.js @@ -13,9 +13,9 @@ var exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate"))); + throw new Test262Error('#1.1: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js index 461f4dafec..2530e6bfb8 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T2.js @@ -16,9 +16,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { __instance.exec("message to investigate"); - $ERROR('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")'); + throw new Test262Error('#1.1: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate")'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = Math; __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js index ae0fefba14..38a52db787 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T3.js @@ -14,10 +14,10 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { __instance.exec("message to investigate"); - $ERROR('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}'); + throw new Test262Error('#1.1: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e)); + throw new Test262Error('#1.2: __instance.exec = RegExp.prototype.exec; __instance.exec("message to investigate"); function __instance(){}. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js index 8cd33f8c3c..579cc12717 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T4.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new String("[a-b]"); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js index 146eeacf46..cbc2a67257 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T5.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError !== true)) { - $ERROR('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Boolean(false); __instance.exec = RegExp.prototype.exec; exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js index 5c2fa4f00c..592d8b002d 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T6.js @@ -15,9 +15,9 @@ __instance.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (__instance["exec"]("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Number(1.0); __instance.exec = RegExp.prototype.exec; __instance["exec"]("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js index 7c0a55e09b..da128ca9e1 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T7.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = false; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js index 8c31afbbf0..08b9ef64a3 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T8.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = "."; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js index f71557bf6a..0bdd724b1e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A2_T9.js @@ -15,9 +15,9 @@ Object.prototype.exec = RegExp.prototype.exec; //CHECK#1 try { - $ERROR('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); + throw new Test262Error('#1.1: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (__instance.exec("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = 1.0; Object.prototype.exec = RegExp.prototype.exec; __instance.exec("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js index 4052d931ac..ae09af0c40 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T1.js @@ -27,12 +27,12 @@ do{ //CHECK#1 if (__expected.length !== __matched.length) { - $ERROR('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); + throw new Test262Error('#1: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); } //CHECK#2 for(var index=0; index<__expected.length; index++) { if (__expected[index] !== __matched[index]) { - $ERROR('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); + throw new Test262Error('#2: __executed = /(?:ab|cd)\\d?/g.exec("ab cd2 ab34 cd"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js index 34a0fe65ad..1654c80a6d 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T2.js @@ -150,5 +150,5 @@ do{ //CHECK#1 if (__matched !== NEVERMORE) { - $ERROR('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched); + throw new Test262Error('#1: __re = /[Nn]evermore/g; __executed = __re.exec(__the__raven)'+__matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js index 8afc2f5a58..5446619929 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T3.js @@ -150,5 +150,5 @@ do{ //CHECK#1 if (__matched !== NEVERMORE_AND_EVERMORE) { - $ERROR('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched); + throw new Test262Error('#1: __re = /[Nn]?evermore/g; __executed = __re.exec(__the__raven)'+__matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js index 278549a279..6e0760ed5f 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T4.js @@ -152,5 +152,5 @@ do{ //CHECK#1 if (__matched !== ALL_THE_HOPELESS_MORE) { - $ERROR('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched); + throw new Test262Error('#1: __re = /([Nn]?ever|([Nn]othing\\s{1,}))more/g; __executed = __re.exec(__the__raven)'+__matched); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js index bd8109d4ea..5b6458bec5 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T5.js @@ -27,12 +27,12 @@ do{ //CHECK#1 if (__expected.length !== __matched.length) { - $ERROR('#1: __executed = /\\d+/g.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); + throw new Test262Error('#1: __executed = /\\d+/g.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); } //CHECK#2 for(var index=0; index<__expected.length; index++) { if (__expected[index] !== __matched[index]) { - $ERROR('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); + throw new Test262Error('#2: __executed = /\\d+/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js index 8bef077da6..6a26dde712 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T6.js @@ -27,12 +27,12 @@ do{ //CHECK#1 if (__expected.length !== __matched.length) { - $ERROR('#1: __executed = /(\\d+)/g.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); + throw new Test262Error('#1: __executed = /(\\d+)/g.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); } //CHECK#2 for(var index=0; index<__expected.length; index++) { if (__expected[index] !== __matched[index]) { - $ERROR('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); + throw new Test262Error('#2: __executed = /(\\d+)/g.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js index 57d17d1f2b..591402d5cd 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A3_T7.js @@ -27,12 +27,12 @@ do{ //CHECK#1 if (__expected.length !== __matched.length) { - $ERROR('#1: __executed = /\\d+/.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); + throw new Test262Error('#1: __executed = /\\d+/.exec("123 456 789"); __matched.length === ' + (__expected.length) + '.Actual: ' + (__matched.length)); } //CHECK#2 for(var index=0; index<__expected.length; index++) { if (__expected[index] !== __matched[index]) { - $ERROR('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); + throw new Test262Error('#2: __executed = /\\d+/.exec("123 456 789"); __matched[' + index + '] === ' + __expected[index] + '. Actual: ' + __matched[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js index 2f080253f1..96d762ff2a 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T1.js @@ -19,23 +19,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = 12; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js index 404c48956a..ac3356294b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T10.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -53,22 +53,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __obj = {valueOf:function(){return 12;}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js index b375c31d94..809b410554 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T11.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -47,9 +47,9 @@ __re.lastIndex = __obj; //CHECK#5 try { - $ERROR('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42"))); + throw new Test262Error('#5.1: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (__re.exec("aacd2233ab12nm444ab42"))); } catch (e) { if (e !== "intoint") { - $ERROR('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); + throw new Test262Error('#5.2: __obj = {valueOf:function(){throw "intoint";}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42") throw "intoint". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js index 34693e3359..10bb154904 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T12.js @@ -22,23 +22,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -54,22 +54,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __obj = {toString:function(){return 12;},valueOf:function(){return {};}}; __re.lastIndex = __obj; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js index ab07be7a45..4ec62baa4e 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T2.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = undefined; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js index e770aec3eb..d84c2086c6 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T3.js @@ -19,23 +19,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = void 0; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js index 249609f650..56edc936d0 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T4.js @@ -19,23 +19,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = null; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js index 295aac5960..488c166100 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T5.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -51,23 +51,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = x; __executed = __re.exec("aacd2233ab12nm444ab42"); var x; __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js index 3c852b3085..ef80d4e2ec 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T6.js @@ -19,23 +19,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = false; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js index e3f478c525..171d394684 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T7.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; re.lastIndex = Math.NaN; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js index b82c014f46..eda2aa1049 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T8.js @@ -19,23 +19,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -49,22 +49,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "12"; __executed = __re.exec("aacd2233ab12nm444ab42");__executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js index 7dc9e0ffad..aefb8ca294 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A4_T9.js @@ -21,23 +21,23 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -51,22 +51,22 @@ __expected.input = "aacd2233ab12nm444ab42"; //CHECK#5 if (__executed.length !== __expected.length) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#6 if (__executed.index !== __expected.index) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#7 if (__executed.input !== __expected.input) { - $ERROR('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#7: __re = /(?:ab|cd)\\d?/g; __re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#8 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#8: __re = /(?:ab|cd)\\d?/g;__re.lastIndex = "eleven"; __executed = __re.exec("aacd2233ab12nm444ab42"); __executed = __re.exec("aacd2233ab12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js index a7b9e0283a..c37fd2d18f 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T1.js @@ -21,23 +21,23 @@ __expected.input = "aac1dz2233a1bz12nm444ab42"; //CHECK#1 if (__executed.length !== __expected.length) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.length === ' + __expected.length + '. Actual: ' + __executed.length); } //CHECK#2 if (__executed.index !== __expected.index) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.index === ' + __expected.index + '. Actual: ' + __executed.index); } //CHECK#3 if (__executed.input !== __expected.input) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed.input === ' + __expected.input + '. Actual: ' + __executed.input); } //CHECK#4 for(var index=0; index<__expected.length; index++) { if (__executed[index] !== __expected[index]) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aac1dz2233a1bz12nm444ab42"); __executed[' + index + '] === ' + __expected[index] + '. Actual: ' + __executed[index]); } } @@ -45,10 +45,10 @@ __executed = __re.exec("aacd22"); //CHECK#5 if (__executed) { - $ERROR('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true'); + throw new Test262Error('#5: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __executed === true'); } //CHECK#6 if (__re.lastIndex !== 0) { - $ERROR('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#6: __re = /(?:ab|cd)\\d?/g; __executed = __re.exec("aacd22"); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js index 9bd529e028..16c8138d01 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T2.js @@ -16,10 +16,10 @@ var __executed = __re.exec("aacd22 "); //CHECK#1 if (__executed) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true'); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __executed === true'); } //CHECK#2 if (__re.lastIndex !== 0) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=100; __executed = __re.exec("aacd22 "); __re.lastIndex === 0. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js index f65ed49379..aa20880952 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A5_T3.js @@ -16,12 +16,12 @@ var __executed = __re.exec("aacd22 "); //CHECK#1 if (__executed[0] !== "cd2") { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); } //CHECK#2 if (__re.lastIndex !== 5) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } __re.lastIndex=-100; @@ -29,10 +29,10 @@ __executed = __re.exec("aacd22 "); //CHECK#3 if (__executed[0] !== "cd2") { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __executed[0] === "cd2"'); } //CHECK#4 if (__re.lastIndex !== 5) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.exec("aacd22 "); __re.lastIndex=-100; __executed = __re.exec("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A6.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A6.js index fa3d18871d..ea6df7cbb5 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A6.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A6.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype.exec.prototype //CHECK#1 if (RegExp.prototype.exec.prototype !== undefined) { - $ERROR('#1: RegExp.prototype.exec.prototype === undefined. Actual: ' + (RegExp.prototype.exec.prototype)); + throw new Test262Error('#1: RegExp.prototype.exec.prototype === undefined. Actual: ' + (RegExp.prototype.exec.prototype)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A7.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A7.js index c9a903765e..cbaa57ca83 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A7.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A7.js @@ -11,9 +11,9 @@ var __FACTORY = RegExp.prototype.exec; try { var __instance = new __FACTORY; - $ERROR('#1.1: __FACTORY = RegExp.prototype.exec throw TypeError. Actual: ' + (__instance)); + throw new Test262Error('#1.1: __FACTORY = RegExp.prototype.exec throw TypeError. Actual: ' + (__instance)); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __FACTORY = RegExp.prototype.exec throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: __FACTORY = RegExp.prototype.exec throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js index c891da096b..d7a133327b 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A8.js @@ -11,12 +11,12 @@ description: > //CHECK#0 if (RegExp.prototype.exec.hasOwnProperty('length') !== true) { - $ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (RegExp.prototype.exec.propertyIsEnumerable('length') !== false) { - $ERROR('#1: RegExp.prototype.exec.propertyIsEnumerable(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.exec.propertyIsEnumerable(\'length\') === true'); } //CHECK#2 @@ -27,5 +27,5 @@ for (var p in RegExp.prototype.exec){ } if (count !== 0) { - $ERROR('#2: count = 0; for (p in RegExp.prototype.exec){ if (p==="length") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; for (p in RegExp.prototype.exec){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A9.js b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A9.js index fdcf18dd92..9e2ee38de8 100644 --- a/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A9.js +++ b/test/built-ins/RegExp/prototype/exec/S15.10.6.2_A9.js @@ -13,15 +13,15 @@ description: > //CHECK#0 if ((RegExp.prototype.exec.hasOwnProperty('length') !== true)) { - $ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (delete RegExp.prototype.exec.length !== true) { - $ERROR('#1: delete RegExp.prototype.exec.length === true'); + throw new Test262Error('#1: delete RegExp.prototype.exec.length === true'); } //CHECK#2 if (RegExp.prototype.exec.hasOwnProperty('length') !== false) { - $ERROR('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === false'); + throw new Test262Error('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === false'); } diff --git a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A10.js b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A10.js index 4c346ebe4e..d5d3a5023b 100644 --- a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A10.js +++ b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A10.js @@ -12,7 +12,7 @@ var __re = RegExp.prototype; //CHECK#1 if (__re.hasOwnProperty('global') !== true) { - $ERROR('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); } var __sample = /^|^/; @@ -22,5 +22,5 @@ verifyNotWritable(__sample, "global", "global", "shifted"); //CHECK#2 if (__sample.global !== __obj) { - $ERROR('#2: __sample = /^|^/; __obj = __sample.global; __sample.global = "shifted"; __sample.global === __obj. Actual: ' + (__sample.global)); + throw new Test262Error('#2: __sample = /^|^/; __obj = __sample.global; __sample.global = "shifted"; __sample.global === __obj. Actual: ' + (__sample.global)); } diff --git a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js index 4826409699..36048b7491 100644 --- a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js +++ b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A8.js @@ -13,12 +13,12 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('global') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); } //CHECK#1 if (__re.propertyIsEnumerable('global') !== false) { - $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'global\') === false'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'global\') === false'); } //CHECK#2 @@ -28,5 +28,5 @@ for (var p in __re){ } if (count !== 0) { - $ERROR('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="global") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="global") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A9.js b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A9.js index a32b2086c3..cdb1e50691 100644 --- a/test/built-ins/RegExp/prototype/global/S15.10.7.2_A9.js +++ b/test/built-ins/RegExp/prototype/global/S15.10.7.2_A9.js @@ -13,15 +13,15 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('global') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'global\') === true'); } //CHECK#1 if ((delete __re.global) !== true) { - $ERROR('#1: __re = RegExp.prototype; (delete __re.global) === true'); + throw new Test262Error('#1: __re = RegExp.prototype; (delete __re.global) === true'); } //CHECK#2 if (__re.hasOwnProperty('global') !== false) { - $ERROR('#2: __re = RegExp.prototype;delete __re.global === true; __re.hasOwnProperty(\'global\') === false'); + throw new Test262Error('#2: __re = RegExp.prototype;delete __re.global === true; __re.hasOwnProperty(\'global\') === false'); } diff --git a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A10.js b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A10.js index 5f1f2fb681..f0258b955d 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A10.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A10.js @@ -12,7 +12,7 @@ var __re = RegExp.prototype; //CHECK#1 if (__re.hasOwnProperty('ignoreCase') !== true) { - $ERROR('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); } var __sample = /a|b|c/; @@ -22,5 +22,5 @@ verifyNotWritable(__sample, "ignoreCase", "ignoreCase", "shifted"); //CHECK#2 if (__sample.ignoreCase !== __obj) { - $ERROR('#2: __sample = /a|b|c/; __obj = __sample.ignoreCase; __sample.ignoreCase = "shifted"; __sample.ignoreCase === __obj. Actual: ' + (__sample.ignoreCase)); + throw new Test262Error('#2: __sample = /a|b|c/; __obj = __sample.ignoreCase; __sample.ignoreCase = "shifted"; __sample.ignoreCase === __obj. Actual: ' + (__sample.ignoreCase)); } diff --git a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js index 7969581b14..123ea90394 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A8.js @@ -13,12 +13,12 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('ignoreCase') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); } //CHECK#1 if (__re.propertyIsEnumerable('ignoreCase') !== false) { - $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'ignoreCase\') === false'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'ignoreCase\') === false'); } //CHECK#2 @@ -28,5 +28,5 @@ for (var p in __re){ } if (count !== 0) { - $ERROR('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="ignoreCase") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="ignoreCase") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A9.js b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A9.js index 16b9180090..4819572204 100644 --- a/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A9.js +++ b/test/built-ins/RegExp/prototype/ignoreCase/S15.10.7.3_A9.js @@ -13,15 +13,15 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('ignoreCase') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'ignoreCase\') === true'); } //CHECK#1 if ((delete __re.ignoreCase) !== true) { - $ERROR('#1: __re = RegExp.prototype; (delete __re.ignoreCase) === true'); + throw new Test262Error('#1: __re = RegExp.prototype; (delete __re.ignoreCase) === true'); } //CHECK#2 if (__re.hasOwnProperty('ignoreCase') !== false) { - $ERROR('#2: __re = RegExp.prototype;delete __re.ignoreCase === true; __re.hasOwnProperty(\'ignoreCase\') === false'); + throw new Test262Error('#2: __re = RegExp.prototype;delete __re.ignoreCase === true; __re.hasOwnProperty(\'ignoreCase\') === false'); } diff --git a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A10.js b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A10.js index 8dca08645e..7c8d328bed 100644 --- a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A10.js +++ b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A10.js @@ -12,7 +12,7 @@ var __re = RegExp.prototype; //CHECK#1 if (__re.hasOwnProperty('multiline') !== true) { - $ERROR('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); } var __sample = /\n/; @@ -22,5 +22,5 @@ verifyNotWritable(__sample, "multiline", "multiline", "shifted"); //CHECK#2 if (__sample.multiline !== __obj) { - $ERROR('#2: __sample = /\n/; __obj = __sample.multiline; __sample.multiline = "shifted"; __sample.multiline === __obj. Actual: ' + (__sample.multiline)); + throw new Test262Error('#2: __sample = /\n/; __obj = __sample.multiline; __sample.multiline = "shifted"; __sample.multiline === __obj. Actual: ' + (__sample.multiline)); } diff --git a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js index 01344abce0..06c706d20d 100644 --- a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js +++ b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A8.js @@ -13,12 +13,12 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('multiline') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); } //CHECK#1 if (__re.propertyIsEnumerable('multiline') !== false) { - $ERROR('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'multiline\') === false'); + throw new Test262Error('#1: __re = RegExp.prototype; __re.propertyIsEnumerable(\'multiline\') === false'); } //CHECK#2 @@ -28,5 +28,5 @@ for (var p in __re){ } if (count !== 0) { - $ERROR('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="multiline") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; __re = RegExp.prototype; for (p in __re){ if (p==="multiline") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A9.js b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A9.js index 405f58f9f2..f365ab6065 100644 --- a/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A9.js +++ b/test/built-ins/RegExp/prototype/multiline/S15.10.7.4_A9.js @@ -13,15 +13,15 @@ var __re = RegExp.prototype; //CHECK#0 if (__re.hasOwnProperty('multiline') !== true) { - $ERROR('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); + throw new Test262Error('#0: __re = RegExp.prototype; __re.hasOwnProperty(\'multiline\') === true'); } //CHECK#1 if ((delete __re.multiline) !== true) { - $ERROR('#1: __re = RegExp.prototype; (delete __re.multiline) === true'); + throw new Test262Error('#1: __re = RegExp.prototype; (delete __re.multiline) === true'); } //CHECK#2 if (__re.hasOwnProperty('multiline') !== false) { - $ERROR('#2: __re = RegExp.prototype;delete __re.multiline === true; __re.hasOwnProperty(\'multiline\') === false'); + throw new Test262Error('#2: __re = RegExp.prototype;delete __re.multiline === true; __re.hasOwnProperty(\'multiline\') === false'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js index 2cd4e78079..7aafbb0533 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A10.js @@ -10,7 +10,7 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.prototype.test.hasOwnProperty('length') !== true) { - $ERROR('#1: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); } var __obj = RegExp.prototype.test.length; @@ -19,5 +19,5 @@ verifyNotWritable(RegExp.prototype.test, "length", null, function(){return "shif //CHECK#2 if (RegExp.prototype.test.length !== __obj) { - $ERROR('#2: __obj = RegExp.prototype.test.length; RegExp.prototype.test.length = function(){return "shifted";}; RegExp.prototype.test.length === __obj. Actual: ' + (RegExp.prototype.test.length)); + throw new Test262Error('#2: __obj = RegExp.prototype.test.length; RegExp.prototype.test.length = function(){return "shifted";}; RegExp.prototype.test.length === __obj. Actual: ' + (RegExp.prototype.test.length)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A11.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A11.js index 02bed07d0d..55bfad3382 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A11.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A11.js @@ -9,10 +9,10 @@ description: Checking RegExp.prototype.test.length //CHECK#1 if (RegExp.prototype.test.hasOwnProperty("length") !== true) { - $ERROR('#1: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); } //CHECK#2 if (RegExp.prototype.test.length !== 1) { - $ERROR('#2: RegExp.prototype.test.length === 1. Actual: ' + (RegExp.prototype.test.length)); + throw new Test262Error('#2: RegExp.prototype.test.length === 1. Actual: ' + (RegExp.prototype.test.length)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js index 5fcda8dca5..b46efa1f74 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T1.js @@ -12,5 +12,5 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = "123";__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js index de045b10f7..380586ddd8 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T10.js @@ -12,5 +12,5 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = 1.01;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js index 0663d82c91..f463f014e2 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T11.js @@ -12,5 +12,5 @@ var __re = /2|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = new Number(1.012); __re = /2|12/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js index 40e81bc407..6359c281f1 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T12.js @@ -14,5 +14,5 @@ var __re = /\.14/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = {toString:function(){return Math.PI;}}; __re = /\\.14/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js index bf1374b1ae..889d2cb287 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T13.js @@ -12,5 +12,5 @@ var __re = /t[a-b|q-s]/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = true;__re = /t[a-b|q-s]/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js index 813a98cdb7..a86f1422d8 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T14.js @@ -12,5 +12,5 @@ var __re = /AL|se/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = new Boolean;__re = /AL|se/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js index ff62b3be73..6c379dc7ec 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T15.js @@ -14,5 +14,5 @@ var __re = /LS/i; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = {toString:function(){return false;}}; __re = /LS/i; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js index 7aa80a6cbc..9a2f11296b 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T16.js @@ -11,5 +11,5 @@ var __re = /undefined/; //CHECK#0 if (__re.test() !== (__re.exec() !== null)) { - $ERROR('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)'); + throw new Test262Error('#0: __re = /undefined/; __re.test() === (__re.exec() !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js index 030933e715..800bf6948d 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T17.js @@ -11,5 +11,5 @@ var __re = /ll|l/; //CHECK#0 if (__re.test(null) !== (__re.exec(null) !== null)) { - $ERROR('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)'); + throw new Test262Error('#0: __re = /ll|l/; __re.test(null) === (__re.exec(null) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js index 7b05aba060..9705eb78f1 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T18.js @@ -11,5 +11,5 @@ var __re = /nd|ne/; //CHECK#0 if (__re.test(undefined) !== (__re.exec(undefined) !== null)) { - $ERROR('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)'); + throw new Test262Error('#0: __re = /nd|ne/; __re.test(undefined) === (__re.exec(undefined) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js index 7ac446dbcd..288b9c3f18 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T19.js @@ -11,5 +11,5 @@ var __re = /e{1}/; //CHECK#0 if (__re.test(void 0) !== (__re.exec(void 0) !== null)) { - $ERROR('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)'); + throw new Test262Error('#0: __re = /e{1}/; __re.test(void 0) === (__re.exec(void 0) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js index 1450311d4a..9c2e844b81 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T2.js @@ -14,5 +14,5 @@ var __re = /((1)|(12))((3)|(23))/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = new String("123"); __re = /((1)|(12))((3)|(23))/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js index 15bf3b7bc3..7fd090f900 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T20.js @@ -11,7 +11,7 @@ var __re = /[a-f]d/; //CHECK#0 if (__re.test(x) !== (__re.exec(x) !== null)) { - $ERROR('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;'); + throw new Test262Error('#0: __re = /[a-f]d/; __re.test(x) === (__re.exec(x) !== null); var x;'); } var x; diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js index aa7ca15957..be87fedc89 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T21.js @@ -13,5 +13,5 @@ var __re = /[a-z]n/; //CHECK#0 if (__re.test(function(){}()) !== (__re.exec(function(){}()) !== null)) { - $ERROR('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)'); + throw new Test262Error('#0: __re = /[a-z]n/; __re.test(function(){}()) === (__re.exec(function(){}()) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js index 73af4f879b..ffba29624b 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T22.js @@ -16,12 +16,12 @@ var __executed = __re.test("aacd22 "); //CHECK#1 if (!__executed) { - $ERROR('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true'); + throw new Test262Error('#1: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __executed === true'); } //CHECK#2 if (__re.lastIndex !== 5) { - $ERROR('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#2: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } __re.lastIndex=-100; @@ -29,10 +29,10 @@ __executed = __re.test("aacd22 "); //CHECK#3 if (!__executed) { - $ERROR('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true'); + throw new Test262Error('#3: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __executed === true'); } //CHECK#4 if (__re.lastIndex !== 5) { - $ERROR('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); + throw new Test262Error('#4: __re = /(?:ab|cd)\\d?/g; __re.lastIndex=-1; __executed = __re.test("aacd22 "); __re.lastIndex=-100; __executed = __re.test("aacd22 "); __re.lastIndex === 5. Actual: ' + (__re.lastIndex)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js index 6ce78d0653..a2c57dc774 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T3.js @@ -14,5 +14,5 @@ var __re = /a[a-z]{2,4}/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = new Object("abcdefghi"); __re = /a[a-z]{2,4}/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js index 444fbebb3c..15f835ae67 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T4.js @@ -14,5 +14,5 @@ var __re = /a[a-z]{2,4}?/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = {toString:function(){return "abcdefghi";}}; __re = /a[a-z]{2,4}?/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js index fd79faab48..b0102ab6c1 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T5.js @@ -15,5 +15,5 @@ var __re = /(aa|aabaac|ba|b|c)*/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); + throw new Test262Error('#0: var __string = {toString:function(){return {};}, valueOf:function(){return "aabaac";}}; __re = /(aa|aabaac|ba|b|c)*/; __re.test(__string) === (__re.exec(__string) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js index 9391e3eca6..38d0a83335 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T6.js @@ -13,5 +13,5 @@ var __re = /(z)((a+)?(b+)?(c))*/; //CHECK#0 if (__re.test((function(){return "zaacbbbcac"})()) !== (__re.exec((function(){return "zaacbbbcac"})()) !== null)) { - $ERROR('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); + throw new Test262Error('#0: __re = /(z)((a+)?(b+)?(c))*/; __re.test((function(){return "zaacbbbcac"})()) === (__re.exec((function(){return "zaacbbbcac"})()) !== null)'); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js index b51f07c96d..9e196aa868 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T7.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({toString:function(){throw "intostr";}}))); + throw new Test262Error('#1.1: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (/[a-z]/.test({toString:function(){throw "intostr";}}))); } catch (e) { if (e !== "intostr") { - $ERROR('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); + throw new Test262Error('#1.2: /[a-z]/.test({toString:function(){throw "intostr";}}) throw "intostr". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js index 3380f6b60b..fcabf1f116 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T8.js @@ -11,9 +11,9 @@ description: > //CHECK#1 try { - $ERROR('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}))); + throw new Test262Error('#1.1: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (/[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}))); } catch (e) { if (e !== "invalof") { - $ERROR('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); + throw new Test262Error('#1.2: /[a-z]/.test({toString:void 0, valueOf:function(){throw "invalof";}}) throw "invalof". Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js index 5ff8d3dec3..803e21683d 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A1_T9.js @@ -12,7 +12,7 @@ var __re = /1|12/; //CHECK#0 if (__re.test(__string) !== (__re.exec(__string) !== null)) { - $ERROR('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};'); + throw new Test262Error('#0: var __string;__re = /1|12/; __re.test(__string) === (__re.exec(__string) !== null); function __string(){};'); } function __string(){}; diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T1.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T1.js index 01334ca1cd..83535ed48a 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T1.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T1.js @@ -15,9 +15,9 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = new Object; __instance.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Object; __instance.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Object; __instance.test = RegExp.prototype.test. Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Object; __instance.test = RegExp.prototype.test. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T10.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T10.js index cfcb042296..ab006c2227 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T10.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T10.js @@ -13,9 +13,9 @@ var test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (test("message to investigate"))); + throw new Test262Error('#1.1: test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js index e3f540e240..bc13312a39 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T2.js @@ -16,9 +16,9 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { __instance.test("message to investigate"); - $ERROR('#1.1: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate")'); + throw new Test262Error('#1.1: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate")'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = Math; __instance.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js index 85f5cd90cb..4e5b95e762 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T3.js @@ -14,10 +14,10 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { __instance.test("message to investigate"); - $ERROR('#1.1: __instance.test = RegExp.prototype.test; __instance.test("message to investigate"); function __instance(){}'); + throw new Test262Error('#1.1: __instance.test = RegExp.prototype.test; __instance.test("message to investigate"); function __instance(){}'); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance.test = RegExp.prototype.test; __instance.test("message to investigate"); function __instance(){}. Actual: ' + (e)); + throw new Test262Error('#1.2: __instance.test = RegExp.prototype.test; __instance.test("message to investigate"); function __instance(){}. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js index 5040c3dde6..cdbd269a28 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T4.js @@ -15,9 +15,9 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new String("[a-b]"); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js index f94a6fa0f9..fdfd7dcd0c 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T5.js @@ -15,9 +15,9 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError !== true)) { - $ERROR('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Boolean(false); __instance.test = RegExp.prototype.test; test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T6.js index f83faf70a7..e0fd5a63fd 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T6.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T6.js @@ -15,9 +15,9 @@ __instance.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = new Number(1.0); __instance.test = RegExp.prototype.test; __instance["test"]("message to investigate"). Actual: ' + (__instance["test"]("message to investigate"))); + throw new Test262Error('#1.1: __instance = new Number(1.0); __instance.test = RegExp.prototype.test; __instance["test"]("message to investigate"). Actual: ' + (__instance["test"]("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = new Number(1.0); __instance.test = RegExp.prototype.test; __instance["test"]("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = new Number(1.0); __instance.test = RegExp.prototype.test; __instance["test"]("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T7.js index ca67394c36..7f71bfb5fd 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T7.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T7.js @@ -15,9 +15,9 @@ Object.prototype.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = false; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = false; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = false; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = false; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T8.js index cfe240b792..5a91187b8b 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T8.js @@ -15,9 +15,9 @@ Object.prototype.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = "."; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = "."; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = "."; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = "."; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T9.js index 0d8b721644..de89bd998c 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T9.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A2_T9.js @@ -15,9 +15,9 @@ Object.prototype.test = RegExp.prototype.test; //CHECK#1 try { - $ERROR('#1.1: __instance = 1.0; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); + throw new Test262Error('#1.1: __instance = 1.0; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (__instance.test("message to investigate"))); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __instance = 1.0; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); + throw new Test262Error('#1.2: __instance = 1.0; Object.prototype.test = RegExp.prototype.test; __instance.test("message to investigate"). Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A6.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A6.js index 6e8f7ee3c8..4de61bc0ca 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A6.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A6.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype.test.prototype //CHECK#1 if (RegExp.prototype.test.prototype !== undefined) { - $ERROR('#1: RegExp.prototype.test.prototype === undefined. Actual: ' + (RegExp.prototype.test.prototype)); + throw new Test262Error('#1: RegExp.prototype.test.prototype === undefined. Actual: ' + (RegExp.prototype.test.prototype)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A7.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A7.js index 3a3a170ace..5e679ce834 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A7.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A7.js @@ -11,9 +11,9 @@ var __FACTORY = RegExp.prototype.test; try { var __instance = new __FACTORY; - $ERROR('#1.1: __FACTORY = RegExp.prototype.test throw TypeError. Actual: ' + (__instance)); + throw new Test262Error('#1.1: __FACTORY = RegExp.prototype.test throw TypeError. Actual: ' + (__instance)); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __FACTORY = RegExp.prototype.test throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: __FACTORY = RegExp.prototype.test throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js index fdc0c6affd..b15989fef2 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A8.js @@ -11,12 +11,12 @@ description: > //CHECK#0 if (RegExp.prototype.test.hasOwnProperty('length') !== true) { - $ERROR('#0: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.test.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (RegExp.prototype.test.propertyIsEnumerable('length') !== false) { - $ERROR('#1: RegExp.prototype.test.propertyIsEnumerable(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.test.propertyIsEnumerable(\'length\') === true'); } //CHECK#2 @@ -27,5 +27,5 @@ for (var p in RegExp.prototype.test){ } if (count !== 0) { - $ERROR('#2: count = 0; for (p in RegExp.prototype.test){ if (p==="length") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; for (p in RegExp.prototype.test){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A9.js b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A9.js index 2f475ec86b..a9ea9b68fb 100644 --- a/test/built-ins/RegExp/prototype/test/S15.10.6.3_A9.js +++ b/test/built-ins/RegExp/prototype/test/S15.10.6.3_A9.js @@ -11,15 +11,15 @@ description: Checking if deleting RegExp.prototype.test.length property fails //CHECK#0 if ((RegExp.prototype.exec.hasOwnProperty('length') !== true)) { - $ERROR('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.exec.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (delete RegExp.prototype.exec.length !== true) { - $ERROR('#1: delete RegExp.prototype.exec.length === true'); + throw new Test262Error('#1: delete RegExp.prototype.exec.length === true'); } //CHECK#2 if (RegExp.prototype.exec.hasOwnProperty('length') !== false) { - $ERROR('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === false'); + throw new Test262Error('#2: delete RegExp.prototype.exec.length; RegExp.prototype.exec.hasOwnProperty(\'length\') === false'); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js index ce3af83844..72991ba61c 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A10.js @@ -12,7 +12,7 @@ includes: [propertyHelper.js] //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { - $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } var __obj = RegExp.prototype.toString.length; @@ -21,5 +21,5 @@ verifyNotWritable(RegExp.prototype.toString, "length", null, function(){return " //CHECK#2 if (RegExp.prototype.toString.length !== __obj) { - $ERROR('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); + throw new Test262Error('#2: __obj = RegExp.prototype.toString.length; RegExp.prototype.toString.length = function(){return "shifted";}; RegExp.prototype.toString.length === __obj. Actual: ' + (RegExp.prototype.toString.length)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js index a54502d5c3..4c3c8bfe39 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A11.js @@ -9,10 +9,10 @@ description: Checking RegExp.prototype.toString.length //CHECK#1 if (RegExp.prototype.toString.hasOwnProperty("length") !== true) { - $ERROR('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } //CHECK#2 if (RegExp.prototype.toString.length !== 0) { - $ERROR('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length)); + throw new Test262Error('#2: RegExp.prototype.toString.length === 0. Actual: ' + (RegExp.prototype.toString.length)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js index 13cc68d813..e5b31934e0 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A6.js @@ -9,5 +9,5 @@ description: Checking RegExp.prototype.toString.prototype //CHECK#1 if (RegExp.prototype.toString.prototype !== undefined) { - $ERROR('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype)); + throw new Test262Error('#1: RegExp.prototype.toString.prototype === undefined. Actual: ' + (RegExp.prototype.toString.prototype)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js index ea4099dba2..efeca299bf 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A7.js @@ -11,9 +11,9 @@ var __FACTORY = RegExp.prototype.toString; try { var __instance = new __FACTORY; - $ERROR('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance)); + throw new Test262Error('#1.1: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (__instance)); } catch (e) { if ((e instanceof TypeError) !== true) { - $ERROR('#1.2: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (e)); + throw new Test262Error('#1.2: __FACTORY = RegExp.prototype.toString throw TypeError. Actual: ' + (e)); } } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js index 8d8135160f..c2532be57c 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A8.js @@ -11,12 +11,12 @@ description: > //CHECK#0 if (RegExp.prototype.toString.hasOwnProperty('length') !== true) { - $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (RegExp.prototype.toString.propertyIsEnumerable('length') !== false) { - $ERROR('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true'); + throw new Test262Error('#1: RegExp.prototype.toString.propertyIsEnumerable(\'length\') === true'); } //CHECK#2 @@ -27,5 +27,5 @@ for (var p in RegExp.prototype.toString){ } if (count !== 0) { - $ERROR('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count)); + throw new Test262Error('#2: count = 0; for (p in RegExp.prototype.toString){ if (p==="length") count++; } count === 0. Actual: ' + (count)); } diff --git a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js index 5d8cf797a5..aaec39054e 100644 --- a/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js +++ b/test/built-ins/RegExp/prototype/toString/S15.10.6.4_A9.js @@ -13,15 +13,15 @@ description: > //CHECK#0 if ((RegExp.prototype.toString.hasOwnProperty('length') !== true)) { - $ERROR('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); + throw new Test262Error('#0: RegExp.prototype.toString.hasOwnProperty(\'length\') === true'); } //CHECK#1 if (delete RegExp.prototype.toString.length !== true) { - $ERROR('#1: delete RegExp.prototype.toString.length === true'); + throw new Test262Error('#1: delete RegExp.prototype.toString.length === true'); } //CHECK#2 if (RegExp.prototype.toString.hasOwnProperty('length') !== false) { - $ERROR('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false'); + throw new Test262Error('#2: delete RegExp.prototype.toString.length; RegExp.prototype.toString.hasOwnProperty(\'length\') === false'); }