head-lhs-non-asnmt-trgt.js (534B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2016 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 description: Head's LeftHandSideExpression must be a simple assignment target 7 info: | 8 It is a Syntax Error if IsValidSimpleAssignmentTarget of 9 LeftHandSideExpression is false. 10 esid: sec-for-in-and-for-of-statements-static-semantics-early-errors 11 es6id: 13.7.5 12 negative: 13 phase: parse 14 type: SyntaxError 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 for (this in {}) {}