mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 11:44:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			432 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			432 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // This file was procedurally generated from the following sources:
 | |
| // - src/subclass-builtins/SyntaxError.case
 | |
| // - src/subclass-builtins/default/expression.template
 | |
| /*---
 | |
| description: new SubSyntaxError() instanceof SyntaxError (Subclass instanceof Heritage)
 | |
| flags: [generated]
 | |
| ---*/
 | |
| 
 | |
| 
 | |
| const Subclass = class extends SyntaxError {}
 | |
| 
 | |
| const sub = new Subclass();
 | |
| assert(sub instanceof Subclass);
 | |
| assert(sub instanceof SyntaxError);
 |