multi-02.js (256B)
1 /* Exercise the path where we want to collect a new compartment in the middle of incremental GC. */ 2 3 var g1 = newGlobal(); 4 var g2 = newGlobal(); 5 6 schedulezone(g1); 7 gcslice(0); // Start IGC, but don't mark anything. 8 schedulezone(g2); 9 gcslice(1); 10 gcslice();