24 lines
326 B
TypeScript
Raw Normal View History

import "allocator/arena";
import "collector/itcm";
class Foo {
}
var arr: Foo[] = [];
gc.collect(); // should do nothing
arr[0] = {};
gc.collect(); // should do nothing
arr[1] = {};
gc.collect(); // should do nothing
arr[0] = {};
gc.collect(); // should collect the old one
export function main(): i32 { return 0; }