Debian Codegraph @

js/src/jit-test/tests/xdr/bug1585158.js

raw
1 gczeal(4);
2 evalWithCache(`
3 var obj = { a: 1, b: 2 };
4 obj.a++;
5 assertEq(obj.a, 2);
6 `);
7 function evalWithCache(code) {
8 code = cacheEntry(code);
9 ctx_save = Object.create({}, { saveBytecodeWithDelazifications: { value: true } });
10 var res1 = evaluate(code, ctx_save);
11 var res2 = evaluate(code, Object.create(ctx_save, {}));
12 }