2018-12-18 18:56:34 +01:00
|
|
|
// 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-static-semantics-early-errors
|
|
|
|
description: >
|
2019-01-25 20:39:54 +01:00
|
|
|
In non-strict code, "arguments--" does not produce an early error.
|
2018-12-18 18:56:34 +01:00
|
|
|
info: |
|
2019-01-24 10:17:27 +01:00
|
|
|
sec-identifiers-static-semantics-assignmenttargettype
|
2018-12-18 18:56:34 +01:00
|
|
|
|
2019-01-24 10:17:27 +01:00
|
|
|
1. If this IdentifierReference is contained in strict mode code and StringValue of Identifier is "eval" or "arguments", return strict.
|
|
|
|
2. Return simple.
|
2018-12-18 18:56:34 +01:00
|
|
|
|
|
|
|
sec-update-expressions-static-semantics-early-errors
|
|
|
|
|
|
|
|
UpdateExpression : LeftHandSideExpression --
|
|
|
|
|
|
|
|
It is an early Reference Error if AssignmentTargetType of LeftHandSideExpression is invalid.
|
2019-01-24 10:17:27 +01:00
|
|
|
It is an early Syntax Error if AssignmentTargetType of LeftHandSideExpression is strict.
|
2018-12-18 18:56:34 +01:00
|
|
|
flags: [noStrict]
|
|
|
|
---*/
|
|
|
|
|
2019-01-30 15:53:46 +01:00
|
|
|
if (false) {
|
|
|
|
arguments--;
|
|
|
|
}
|