tor-browser

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

function-toString.js (378B)


      1 load(libdir + 'asserts.js');
      2 
      3 var nativeCode = "function () {\n    [native code]\n}";
      4 
      5 var proxy = new Proxy(function() {}, {});
      6 assertEq(Function.prototype.toString.call(proxy), nativeCode);
      7 var o = Proxy.revocable(function() {}, {});
      8 assertEq(Function.prototype.toString.call(o.proxy), nativeCode);
      9 o.revoke();
     10 assertEq(Function.prototype.toString.call(o.proxy), nativeCode);