mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2017 Lucas Azzola. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
author: Lucas Azzola
 | 
						|
esid: pending
 | 
						|
description: >
 | 
						|
  It is a SyntaxError to have a try/catch statement with an empty CatchParameter
 | 
						|
features: [optional-catch-binding]
 | 
						|
info: |
 | 
						|
  Catch[Yield, Await, Return]:
 | 
						|
    catch ( CatchParameter[?Yield, ?Await] ) Block[?Yield, ?Await, ?Return]
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
try {} catch () {}
 | 
						|
 |