arguments-strict.js (818B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (c) 2012 Ecma International. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 esid: sec-update-expressions 8 description: > 9 It is an early Syntax Error if AssignmentTargetType of UnaryExpression is strict. (arguments) 10 info: | 11 sec-identifiers-static-semantics-assignmenttargettype 12 13 If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return strict. 14 15 sec-update-expressions-static-semantics-early-errors 16 17 UpdateExpression: ++ UnaryExpression 18 19 It is an early Syntax Error if AssignmentTargetType of UnaryExpression is strict. 20 flags: [onlyStrict] 21 negative: 22 phase: parse 23 type: SyntaxError 24 ---*/ 25 26 $DONOTEVALUATE(); 27 28 ++arguments;