mirror of
https://github.com/tc39/test262.git
synced 2025-12-01 11:03:13 +01:00
These tests are derived from the following files within the Google V8 project:
test/mjsunit/es6/regress/regress-2506.js
test/mjsunit/es6/regress/regress-3426.js
test/mjsunit/es6/regress/regress-3683.js
13 lines
311 B
JavaScript
13 lines
311 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 (const x of [x]) {}
|
|
|