tor-browser

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

bug1272908.js (529B)


      1 // |jit-test| slow
      2 
      3 // Adapted from randomly chosen test: js/src/jit-test/tests/modules/bug-1233915.js
      4 g = newGlobal({newCompartment: true});
      5 g.parent = this;
      6 g.eval("(" + function() {
      7    Debugger(parent).onExceptionUnwind = function(frame) {
      8    frame.eval("")
      9    } } + ")()");
     10 // Adapted from randomly chosen test: js/src/jit-test/tests/debug/bug1254123.js
     11 function ERROR(msg) {
     12    throw new Error("boom");
     13 }
     14 var dbg = new Debugger;
     15 dbg.onNewGlobalObject = ERROR;
     16 oomTest(function() {
     17    newGlobal({sameZoneAs: this});
     18 })