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

This commit is contained in:
Rick Waldron 2021-07-28 16:47:15 -04:00 committed by GitHub
parent f4914e133e
commit 0947f287ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -9,4 +9,4 @@ description: Checking if deleting "this" fails
//CHECK#1
if (delete this !== true)
$ERROR('#1: The this value associated with an executioncontext is immutable. Actual: this was deleted');
throw new Test262Error('#1: The this value associated with an executioncontext is immutable. Actual: this was deleted');

View File

@ -15,9 +15,9 @@ flags: [noStrict]
var x = 1;
if (this.x !== 1) {
$ERROR("#1: variable x is a property of global object");
throw new Test262Error("#1: variable x is a property of global object");
}
if(delete this.x !== false){
$ERROR("#2: variable x has property attribute DontDelete");
throw new Test262Error("#2: variable x has property attribute DontDelete");
}

View File

@ -13,9 +13,9 @@ flags: [noStrict]
x = 1;
if (this.x !== 1) {
$ERROR("#1: variable x is a property of global object");
throw new Test262Error("#1: variable x is a property of global object");
}
if(delete this.x !== true){
$ERROR("#2: variable x has property attribute DontDelete");
throw new Test262Error("#2: variable x has property attribute DontDelete");
}