diff --git a/test/language/global-code/S10.1.7_A1_T1.js b/test/language/global-code/S10.1.7_A1_T1.js index f4f5db1e21..53a52cc558 100644 --- a/test/language/global-code/S10.1.7_A1_T1.js +++ b/test/language/global-code/S10.1.7_A1_T1.js @@ -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'); diff --git a/test/language/global-code/S10.4.1_A1_T1.js b/test/language/global-code/S10.4.1_A1_T1.js index 48260af8d1..362a87bf98 100644 --- a/test/language/global-code/S10.4.1_A1_T1.js +++ b/test/language/global-code/S10.4.1_A1_T1.js @@ -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"); } diff --git a/test/language/global-code/S10.4.1_A1_T2.js b/test/language/global-code/S10.4.1_A1_T2.js index cf234f7033..8a80bdb56d 100644 --- a/test/language/global-code/S10.4.1_A1_T2.js +++ b/test/language/global-code/S10.4.1_A1_T2.js @@ -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"); }