tor-browser

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

function-tosource-lambda.js (784B)


      1 var f1 = function f0(a, b) { return a + b; }
      2 if (Function.prototype.toSource) {
      3    assertEq(f1.toSource(), "(function f0(a, b) { return a + b; })");
      4 }
      5 assertEq(f1.toString(), "function f0(a, b) { return a + b; }");
      6 assertEq(decompileFunction(f1), f1.toString());
      7 var f2 = function (a, b) { return a + b; };
      8 if (Function.prototype.toSource) {
      9    assertEq(f2.toSource(), "(function (a, b) { return a + b; })");
     10 }
     11 assertEq(f2.toString(), "function (a, b) { return a + b; }");
     12 assertEq(decompileFunction(f2), f2.toString());
     13 var f3 = (function (a, b) { return a + b; });
     14 if (Function.prototype.toSource) {
     15    assertEq(f3.toSource(), "(function (a, b) { return a + b; })");
     16 }
     17 assertEq(f3.toString(), "function (a, b) { return a + b; }");
     18 assertEq(decompileFunction(f3), f3.toString());