Debian Codegraph @

js/src/tests/test262/language/block-scope/leave/for-loop-block-let-declaration-only-shadows-outer-parameter-value-2.js

raw
1 // Copyright (C) 2011 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 13.1
5 description: >
6 for loop block let declaration only shadows outer parameter value 2
7 ---*/
8 (function(x) {
9 label: for (var i = 0; i < 10; ++i) {
10 let x = 'middle' + i;
11 for (var j = 0; j < 10; ++j) {
12 let x = 'inner' + j;
13 continue label;
14 }
15 }
16 assert.sameValue(x, 'outer');
17 })('outer');
18
19
20 reportCompare(0, 0);