chore: migrate $ERROR -> throw new Test262Error in test/language/i* (#3102)

This commit is contained in:
Rick Waldron 2021-07-28 16:46:58 -04:00 committed by GitHub
parent 77fe50f174
commit f4914e133e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 41 additions and 41 deletions

View File

@ -21,5 +21,5 @@ function f1(){
}
if(!(f1() === 1)){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -20,5 +20,5 @@ function f1(){
}
if(!(f1() === 0)){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -17,10 +17,10 @@ function f1(){
return x;
};
return f2();
var x = 1;
}
if(!(f1() === undefined)){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -22,5 +22,5 @@ function f1(){
}
if(!(f1() === 1)){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -26,5 +26,5 @@ function f1(){
}
if(!(f1() === "obj")){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -25,5 +25,5 @@ function f1(){
}
if(!(f1() === "obj")){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -27,5 +27,5 @@ function f1(){
}
if(!(f1() === "obj")){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -27,5 +27,5 @@ function f1(){
}
if(!(f1() === "obj")){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -22,5 +22,5 @@ function f1(){
}
if(!(f1() === "obj")){
$ERROR("#1: Scope chain disturbed");
throw new Test262Error("#1: Scope chain disturbed");
}

View File

@ -9,17 +9,17 @@ description: Creating variables without defining it
//CHECK#1
if (this.x !== undefined) {
$ERROR('#1: this.x === undefined. Actual: ' + (this.x));
throw new Test262Error('#1: this.x === undefined. Actual: ' + (this.x));
}
//CHECK#2
var object = new Object();
if (object.prop !== undefined) {
$ERROR('#2: var object = new Object(); object.prop === undefined. Actual: ' + (object.prop));
throw new Test262Error('#2: var object = new Object(); object.prop === undefined. Actual: ' + (object.prop));
}
//CHECK#3
this.y++;
if (isNaN(y) !== true) {
$ERROR('#3: this.y++; y === Not-a-Number. Actual: ' + (y));
throw new Test262Error('#3: this.y++; y === Not-a-Number. Actual: ' + (y));
}

View File

@ -11,9 +11,9 @@ description: Trying to generate ReferenceError
try {
this.z;
z;
$ERROR('#1.1: this.z; z === undefined throw ReferenceError. Actual: ' + (z));
throw new Test262Error('#1.1: this.z; z === undefined throw ReferenceError. Actual: ' + (z));
} catch(e) {
if ((e instanceof ReferenceError) !== true) {
$ERROR('#1.2: this.z; z === undefined throw ReferenceError. Actual: ' + (e));
throw new Test262Error('#1.2: this.z; z === undefined throw ReferenceError. Actual: ' + (e));
}
}

View File

@ -9,105 +9,105 @@ description: Check ENGLISH SMALL ALPHABET
var a = 1;
if (a !== 1) {
$ERROR('#a');
throw new Test262Error('#a');
}
var b = 1;
if (b !== 1) {
$ERROR('#b');
throw new Test262Error('#b');
}
var c = 1;
if (c !== 1) {
$ERROR('#c');
throw new Test262Error('#c');
}
var d = 1;
if (d !== 1) {
$ERROR('#d');
throw new Test262Error('#d');
}
var e = 1;
if (e !== 1) {
$ERROR('#e');
throw new Test262Error('#e');
}
var f = 1;
if (f !== 1) {
$ERROR('#f');
throw new Test262Error('#f');
}
var g = 1;
if (g !== 1) {
$ERROR('#g');
throw new Test262Error('#g');
}
var h = 1;
if (h !== 1) {
$ERROR('#h');
throw new Test262Error('#h');
}
var i = 1;
if (i !== 1) {
$ERROR('#i');
throw new Test262Error('#i');
}
var j = 1;
if (j !== 1) {
$ERROR('#j');
throw new Test262Error('#j');
}
var k = 1;
if (k !== 1) {
$ERROR('#k');
throw new Test262Error('#k');
}
var l = 1;
if (l !== 1) {
$ERROR('#l');
throw new Test262Error('#l');
}
var m = 1;
if (m !== 1) {
$ERROR('#m');
throw new Test262Error('#m');
}
var n = 1;
if (n !== 1) {
$ERROR('#n');
throw new Test262Error('#n');
}
var o = 1;
if (o !== 1) {
$ERROR('#o');
throw new Test262Error('#o');
}
var p = 1;
if (p !== 1) {
$ERROR('#p');
throw new Test262Error('#p');
}
var q = 1;
if (q !== 1) {
$ERROR('#q');
throw new Test262Error('#q');
}
var r = 1;
if (r !== 1) {
$ERROR('#r');
throw new Test262Error('#r');
}
var s = 1;
if (s !== 1) {
$ERROR('#s');
throw new Test262Error('#s');
}
var t = 1;
if (t !== 1) {
$ERROR('#t');
throw new Test262Error('#t');
}
var u = 1;
if (u !== 1) {
$ERROR('#u');
throw new Test262Error('#u');
}
var v = 1;
if (v !== 1) {
$ERROR('#v');
throw new Test262Error('#v');
}
var w = 1;
if (w !== 1) {
$ERROR('#w');
throw new Test262Error('#w');
}
var x = 1;
if (x !== 1) {
$ERROR('#x');
throw new Test262Error('#x');
}
var y = 1;
if (y !== 1) {
$ERROR('#y');
throw new Test262Error('#y');
}
var z = 1;
if (z !== 1) {
$ERROR('#z');
throw new Test262Error('#z');
}