summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/let/syntax/identifier-let-disallowed-as-boundname.js
blob: f93207d8447bb9dce8792acc6c7b532a9da46eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |reftest| error:SyntaxError
// 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.4.1
description: >
    It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();
for (let let in {}) { }