tor-browser

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

bug1057571.js (503B)


      1 test = (function () {
      2  function f() {
      3    [1,2,3,4,5];
      4  };
      5  return "var obj = { x : 2 };" + f.toString() + "; f()";
      6 })();
      7 evalWithCache(test, {});
      8 function evalWithCache(code, ctx) {
      9  code = cacheEntry(code);
     10  ctx.global = newGlobal();
     11  ctx.isRunOnce = true;
     12  var res1 = evaluate(code, Object.create(ctx, {saveBytecodeWithDelazifications: { value: true } }));
     13  var res2 = evaluate(code, Object.create(ctx, {loadBytecode: { value: true }, saveBytecodeWithDelazifications: { value: true } }));
     14 }