mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
chore: migrate $ERROR -> throw new Test262Error in test/language/g* (#3101)
This commit is contained in:
parent
f4914e133e
commit
0947f287ae
@ -9,4 +9,4 @@ description: Checking if deleting "this" fails
|
|||||||
|
|
||||||
//CHECK#1
|
//CHECK#1
|
||||||
if (delete this !== true)
|
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');
|
||||||
|
@ -15,9 +15,9 @@ flags: [noStrict]
|
|||||||
var x = 1;
|
var x = 1;
|
||||||
|
|
||||||
if (this.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){
|
if(delete this.x !== false){
|
||||||
$ERROR("#2: variable x has property attribute DontDelete");
|
throw new Test262Error("#2: variable x has property attribute DontDelete");
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,9 @@ flags: [noStrict]
|
|||||||
x = 1;
|
x = 1;
|
||||||
|
|
||||||
if (this.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){
|
if(delete this.x !== true){
|
||||||
$ERROR("#2: variable x has property attribute DontDelete");
|
throw new Test262Error("#2: variable x has property attribute DontDelete");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user