mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			493 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			493 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2020 Rick Waldron. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| esid: sec-assignment-operators-static-semantics-early-errors
 | |
| info: |
 | |
|     It is an early Syntax Error if AssignmentTargetType of
 | |
|     LeftHandSideExpression is invalid or strict.
 | |
| description: Logical "??=" assignment with non-simple target
 | |
| negative:
 | |
|   phase: parse
 | |
|   type: SyntaxError
 | |
| features: [logical-assignment-operators]
 | |
| ---*/
 | |
| $DONOTEVALUATE();
 | |
| 
 | |
| 1 ??= 1;
 |