mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			370 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright 2019 Leo Balter. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
esid: prod-AwaitExpression
 | 
						|
description: >
 | 
						|
  await is not a simple assignment target and cannot be assigned to.
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
flags: [module]
 | 
						|
features: [top-level-await]
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
(await 1) = 1;
 |