7 ms·
No major JS implementation uses naive reference counting, because there's no way to break cycles. Cycle collection requires the ability to trace the heap global
by pcwalton 9y ago
No major JS implementation uses naive reference counting, because there's no way to break cycles. Cycle collection requires the ability to trace the heap globally. But the JS engine does not have any way to see inside a wasm heap.