summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/bug1585158.js
blob: a64d5cf7aa53627ddaa179dae023bf95a1b75e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
gczeal(4);
evalWithCache(`
  var obj = { a: 1, b: 2 };
  obj.a++;
  assertEq(obj.a, 2);
`);
function evalWithCache(code) {
  code = cacheEntry(code);
  ctx_save = Object.create({}, { saveIncrementalBytecode: { value: true } });
  var res1 = evaluate(code, ctx_save);
  var res2 = evaluate(code, Object.create(ctx_save, {}));
}