blob: da2bb518996b93fd86b122c6f93de6e0b7f204dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
function lfEvalInCache(lfCode, lfIncremental = false, lfRunOnce = false) {
let ctx = {};
let code = cacheEntry(lfCode);
ctx_save = Object.create(ctx, { saveIncrementalBytecode: { value: true } });
try { evaluate(code, ctx_save); } catch(exc) {}
try { evaluate(code, Object.create(ctx_save, { loadBytecode: { value: true } })); } catch(exc) {}
}
lfEvalInCache(`
function q() {}
Object.freeze(this);
`, false, true);
|