(Expression expr)
| 610 | } |
| 611 | |
| 612 | protected void checkAssignmentLHS(Expression expr) { |
| 613 | if (currentContext().isStrict()) { |
| 614 | if (expr instanceof IdentifierReferenceExpression) { |
| 615 | String id = ((IdentifierReferenceExpression) expr).getIdentifier(); |
| 616 | if (id.equals("eval") || id.equals("arguments")) { |
| 617 | throw new ThrowException(null, this.compilationContext.createSyntaxError(id |
| 618 | + " may not appear on the left-hand-side of a compound assignment expression in strict mode")); |
| 619 | } |
| 620 | } |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | public Expression conditionalExpression(boolean noIn) { |
| 625 | Expression expr = logicalOrExpression(noIn); |
no test coverage detected