forked from upstream/UXP-mirror
Effectively avoids doing any GC work if preffed off, and adopts the same for FinalizationRegistry which internally does similar work as WeakRefs.
Effectively avoids doing any GC work if preffed off, and adopts the same for FinalizationRegistry which internally does similar work as WeakRefs.