export class HeapScope {
    tracking = [];
    new(c: any, ...args: any[]) {
        const ret = new c(...args);
        this.tracking.push(ret);
        return ret;
    }

    dispose() {
        for (const o of this.tracking) {
            o.delete();
        }
    }
}
