mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01: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
 | 
			
		||||
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;
 | 
			
		||||
 | 
			
		||||
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");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -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");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user