mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			512 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			512 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-AsyncMethod
 | 
						|
description: async methods cannot have a line terminator between "async" and the property name
 | 
						|
info: |
 | 
						|
  14.6 Async Function Definitions
 | 
						|
 | 
						|
  AsyncMethod:
 | 
						|
    async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
({
 | 
						|
  async
 | 
						|
  foo() { }
 | 
						|
})
 |