tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

finally-block-let-declaration-only-shadows-outer-parameter-value-1.js (430B)


      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 1
      7 ---*/
      8 try {
      9  (function(x) {
     10    try {
     11      let x = 'inner';
     12      throw 0;
     13    } finally {
     14      assert.sameValue(x, 'outer');
     15    }
     16  })('outer');
     17 } catch (e) {}
     18 
     19 
     20 reportCompare(0, 0);