| ▲ | rtpg 11 hours ago | |
Oh! While this one does mention that you don't have visibility, this + weak refs seem to change the game I remember a couple of years ago (well probably around 2021) reading about GC exposure concerns and seeing some line in some TC39 doc like "users should not have visibility into collection" but if we've shipped weakrefs sounds like we're not thinking about that anymore | ||
| ▲ | sfink 6 hours ago | parent [-] | |
We still try to limit any additional exposure as much as possible, and WR/FG are specced to keep the visibility as coarse as possible. (Collections won't be visible until the current script execution finishes, though async adds a lot more places where that can happen.) A proposal to add new ways of observing garbage collection will still be shot down immediately without a damn good justification. | ||