test262/test/language/statements/for-of/let-bound-names-fordecl-tdz...

13 lines
309 B
JavaScript

// 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.12_S2
description: >
ForIn/Of: Bound names of ForDeclaration are in TDZ (for-of)
negative: ReferenceError
---*/
let x = 1;
for (let x of [x]) {}