Is there still no multiplatform WeakReference?
# getting-started
c
Is there still no multiplatform WeakReference?
hmm the APIs aren't really that close; there doesn't seem to be a way to
.clear()
in JS. maybe you could fake it with a `FinalizationRegistry`/`WeakMap` and some wrappers
c
I just need a
get
operation that returns
null
if the object has been cleared so I can avoid a strong reference
…I might create a micro-library for that
e
hmm I don't think there's a WeakRef for wasm-gc
279 Views