mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 03:34:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			903 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			903 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2020 Rick Waldron. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| description: >
 | |
|   Object literal shorthands are limited to valid identifier references. Future Reserved Words are disallowed in Strict Mode. (implements)
 | |
| esid: sec-object-initializer
 | |
| flags: [noStrict]
 | |
| info: |
 | |
|   PropertyDefinition:
 | |
|     IdentifierReference
 | |
|     CoverInitializedName
 | |
|     PropertyName : AssignmentExpression
 | |
|     MethodDefinition
 | |
| 
 | |
|   Identifier : IdentifierName but not ReservedWord
 | |
|     It is a Syntax Error if this phrase is contained in strict mode code and
 | |
|     the StringValue of IdentifierName is: "implements", "interface", "let",
 | |
|     "package", "private", "protected", "public", "static", or "yield". 
 | |
| negative:
 | |
|   phase: parse
 | |
|   type: SyntaxError
 | |
| ---*/
 | |
| 
 | |
| $DONOTEVALUATE();
 | |
| 
 | |
| var implements = 1;
 | |
| (function() {
 | |
|   "use strict";
 | |
|   ({
 | |
|     implements
 | |
|   });
 | |
| });
 |