Updates for let names as a LHS in for-in loops (#1271)

* Delete identifier-let-allowed-as-lefthandside-expression-non-strict.js

Fixes #1192

This is already covered by 8422147c17/test/language/statements/for-in/head-lhs-let.js (L27)

* restore for-in test
This commit is contained in:
Leo Balter 2017-10-12 15:27:15 -04:00 committed by Rick Waldron
parent 1afb7c74fd
commit edfef8db55
1 changed files with 5 additions and 4 deletions

View File

@ -1,11 +1,12 @@
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.0.1
description: >
for declaration:
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 {}) { }
for (let in {}) { }