test262/test/language/statements/let/syntax/identifier-let-disallowed-a...

15 lines
356 B
JavaScript
Raw Normal View History

// Copyright (C) 2011 the V8 project authors. All rights reserved.
2015-03-19 20:05:41 +01:00
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.4.1
description: >
It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
negative:
phase: parse
type: SyntaxError
2015-03-19 20:05:41 +01:00
---*/
failIfCodeGetsEvaluated();
2015-03-19 20:05:41 +01:00
for (let let in {}) { }