Debian Codegraph @

js/src/jit-test/tests/basic/bug1057571.js

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