mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			872 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			872 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
esid: prod-AsyncArrowHead
 | 
						|
description: async arrows cannot have a line terminator between "async" and the formals
 | 
						|
info: |
 | 
						|
  14.7 Async Arrow Function Definitions
 | 
						|
 | 
						|
  AsyncArrowFunction:
 | 
						|
    [...]
 | 
						|
    CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody
 | 
						|
 | 
						|
  Supplemental Syntax
 | 
						|
 | 
						|
  When processing an instance of the production
 | 
						|
 | 
						|
  AsyncArrowFunction:
 | 
						|
    CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody
 | 
						|
 | 
						|
  the interpretation of CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:
 | 
						|
 | 
						|
  AsyncArrowHead:
 | 
						|
    async [no LineTerminator here] ArrowFormalParameters
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
async
 | 
						|
(foo) => { }
 |