blob: 9af50f7e5e927cde59571c63dc697bd4af64906c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |jit-test| skip-if: helperThreadCount() === 0
var g = newGlobal({ newCompartment: true });
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
lfOffThreadGlobal = g;
lfOffThreadGlobal.offThreadCompileScript(`
grayRoot()[0] = "foo";
`);
lfOffThreadGlobal.runOffThreadScript();
var g = newGlobal({newCompartment: true});
var gw = dbg.addDebuggee(g);
lfOffThreadGlobal = null;
gc();
schedulezone(this);
schedulezone('atoms');
gc('zone');
|