mirror of https://github.com/tc39/test262.git
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/RegExp (#3092)
This commit is contained in:
parent
64a4b76c62
commit
ee3597ed57
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue