mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			784 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			784 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (c) 2012 Ecma International.  All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
esid: sec-update-expressions
 | 
						|
description: >
 | 
						|
  It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is strict. (eval)
 | 
						|
info: |
 | 
						|
  sec-identifiers-static-semantics-assignmenttargettype
 | 
						|
 | 
						|
    If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or  "arguments", return strict.
 | 
						|
 | 
						|
  sec-update-expressions-static-semantics-early-errors
 | 
						|
 | 
						|
    UpdateExpression: LeftHandSideExpression --
 | 
						|
 | 
						|
    It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is strict.
 | 
						|
flags: [onlyStrict]
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
---*/
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
eval--;
 |