Just today (re)discovered FinalizationRegistry which is a big help if you are worried about what may be left behind. It's quite nice to be able to see a log of objects disappearing.
Hah, that's what I was playing with when we discovered this issue.
It's frustrating sometimes waiting for GC to kick in. The Chrome debugger seems to offer a GC now thing, but either it didn't work or it's just a kind of suggestion.
I know this isn't helpful, but it worked fine for me.
I found FinalizationRegistry had a severe performance cost in v8 when I tried it last year.
Never heard of `FinalizationRegistry`, how do we access it?