tor-browser

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

bug-1498980.js (515B)


      1 // |jit-test|
      2 dbgGlobal = newGlobal({newCompartment: true});
      3 dbg = new dbgGlobal.Debugger;
      4 dbg.addDebuggee(this);
      5 
      6 function f() {
      7    dbg.getNewestFrame().older.eval("");
      8 }
      9 
     10 function execModule(source) {
     11    m = parseModule(source);
     12    moduleLink(m);
     13    return moduleEvaluate(m);
     14 }
     15 
     16 execModule("f();").then(() => {
     17  gc();
     18 
     19  execModule("throw 'foo'")
     20    .then(r => {
     21      // We should not reach here.
     22      assertEq(false, true);
     23    })
     24    .catch(e => {
     25      assertEq(e, 'foo');
     26    });
     27 })
     28 
     29 drainJobQueue();