summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/for-in/identifier-let-allowed-as-lefthandside-expression-not-strict.js
blob: f0d109c679de06ca0798cd3c0ab4b08c08e2c50d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
    identifier "let" allowed as lefthandside expression
esid: sec-iteration-statements
info: |
  for ( [ lookahead ∉ { let [ } ] LeftHandSideExpression [?Yield, ?Await] in 
    Expression[+In, ?Yield, ? Await]) Statement[?Yield, ?Await, ?Return]
flags: [noStrict]
---*/
for (let in {}) { }

reportCompare(0, 0);