2017-05-02 21:09:25 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-assignment-operators-static-semantics-early-errors
|
|
|
|
description: >
|
2019-05-03 08:56:41 +02:00
|
|
|
simple assignment throws SyntaxError if LeftHandSide is not a
|
2017-05-02 21:09:25 +02:00
|
|
|
reference (number)
|
|
|
|
info: |
|
|
|
|
AssignmentExpression : LeftHandSideExpression = AssignmentExpression
|
|
|
|
|
2019-05-03 08:56:41 +02:00
|
|
|
It is an early Syntax Error if LeftHandSideExpression is neither an
|
|
|
|
ObjectLiteral nor an ArrayLiteral and AssignmentTargetType of
|
|
|
|
LeftHandSideExpression is invalid or strict.
|
2017-05-02 21:09:25 +02:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2019-05-03 08:56:41 +02:00
|
|
|
type: SyntaxError
|
2017-05-02 21:09:25 +02:00
|
|
|
---*/
|
|
|
|
|
2018-10-11 16:59:24 +02:00
|
|
|
$DONOTEVALUATE();
|
2017-04-29 22:31:08 +02:00
|
|
|
|
2017-05-02 21:09:25 +02:00
|
|
|
42 = 42;
|