tor-browser

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

bug-1263355-22.js (409B)


      1 // |jit-test| error: ReferenceError
      2 
      3 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/Frame-onPop-error-scope-unwind-02.js
      4 var g = newGlobal({newCompartment: true});
      5 var dbg = new Debugger(g);
      6 dbg.onEnterFrame = function(f) {
      7    (f.environment.getVariable("e") == 0);
      8 };
      9 g.eval("" + function f() {
     10    try {
     11        throw 42;
     12    } catch (e) {
     13        noSuchFn(e);
     14    }
     15 });
     16 g.eval("f();");