finally-block-let-declaration-only-shadows-outer-parameter-value-2.js (447B)
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 finally block let declaration only shadows outer parameter value 2 7 ---*/ 8 (function(x) { 9 try { 10 let x = 'middle'; 11 { 12 let x = 'inner'; 13 throw 0; 14 } 15 } catch(e) { 16 17 } finally { 18 assert.sameValue(x, 'outer'); 19 } 20 })('outer'); 21 22 23 reportCompare(0, 0);