tor-browser

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

bug1380962.js (349B)


      1 // |jit-test| skip-if: !Function.prototype.toSource
      2 
      3 // Source string has balanced parentheses even when the source code was discarded.
      4 
      5 function test() {
      6 eval("var f = function() { return 0; };");
      7 assertEq(f.toSource(), "(function() {\n    [native code]\n})");
      8 }
      9 
     10 var g = newGlobal({ discardSource: true });
     11 g.evaluate(test.toString() + "test()");