summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1319443.js
blob: c2f01c3a8e43ead076067a38565cb36944c3853b (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| error: TypeError

var global = newGlobal({ cloneSingletons: true });

var code = cacheEntry(`
function f() {}
Object.freeze(this);
`);

evaluate(code, { global, saveIncrementalBytecode: true });
evaluate(code, { global, saveIncrementalBytecode: true });