lgcl-and-assignment-operator-non-simple-lhs.js (489B)
1 // |reftest| error:SyntaxError 2 // Copyright (c) 2020 Ecma International. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-assignment-operators-static-semantics-early-errors 7 description: > 8 It is a Syntax Error if AssignmentTargetType of LeftHandSideExpression is 9 not simple. 10 negative: 11 phase: parse 12 type: SyntaxError 13 features: [logical-assignment-operators] 14 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 function test() {} 20 test() &&= 1;