blob: 6f078b2db392c3406a575de4d3d5708b7af7f09f [file] [log] [blame]
// Copyright (c) 2018 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-update-expressions
description: >
In non-strict code, "--arguments" does not produce an early error.
info: |
sec-identifiers-static-semantics-assignmenttargettype
1. If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return strict.
2. Return simple.
sec-update-expressions-static-semantics-early-errors
UpdateExpression -- UnaryExpression
It is an early Reference Error if AssignmentTargetType of UnaryExpression is invalid.
It is an early Syntax Error if AssignmentTargetType of UnaryExpression is strict.
flags: [noStrict]
---*/
if (false) {
--arguments;
}