tor-browser

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

onExceptionUnwind-12.js (293B)


      1 var g = newGlobal({newCompartment: true});
      2 g.parent = this;
      3 g.hits = 0;
      4 g.eval("new Debugger(parent).onExceptionUnwind = function () { hits++; };");
      5 function f() {
      6    var x = f();
      7 }
      8 try {
      9  f();
     10 } catch (e) {
     11  assertEq(e instanceof InternalError, true);
     12 } finally {
     13  assertEq(g.hits, 0);
     14 }