tor-browser

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

verify-context-in-finally-block.js (401B)


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