tor-browser

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

Frame-eval-25.js (387B)


      1 // Make sure we can recover missing arguments even when it gets assigned to
      2 // another slot.
      3 
      4 load(libdir + "asserts.js");
      5 load(libdir + "evalInFrame.js");
      6 
      7 function h() {
      8  evalInFrame(1, "a.push(0)");
      9 }
     10 
     11 function f() {
     12  var a = arguments;
     13  h();
     14 }
     15 
     16 assertThrowsInstanceOf(f, TypeError);
     17 
     18 function g() {
     19  {
     20    let a = arguments;
     21    h();
     22  }
     23 }
     24 
     25 assertThrowsInstanceOf(g, TypeError);