tor-browser

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

Frame-eval-30.js (236B)


      1 // Test that Debugger.Frame.eval correctly throws on redeclaration.
      2 
      3 load(libdir + "evalInFrame.js");
      4 
      5 let x;
      6 
      7 function f() {
      8  evalInFrame(1, "var x;");
      9 }
     10 
     11 var log = "";
     12 
     13 try {
     14  f();
     15 } catch (e) {
     16  log += "e";
     17 }
     18 
     19 assertEq(log, "e");