for-loop-block-let-declaration-only-shadows-outer-parameter-value-1.js (408B)
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 1 7 ---*/ 8 (function(x) { 9 for (var i = 0; i < 10; ++i) { 10 let x = 'inner' + i; 11 continue; 12 } 13 assert.sameValue(x, 'outer'); 14 })('outer'); 15 16 17 reportCompare(0, 0);