WeakRef fallbacks
mweidner037 opened this issue · 2 comments
mweidner037 commented
WeakRefs are an ES2021 feature that won't work in older browsers. Currently, @collabs/collabs uses them for serializer caching and CLazyMap
memory management (via WeakValueMap
). In both cases, they are just optimizations, not essential. We should add a fallback that disables these optimizations if WeakRefs are not present.
mweidner037 commented
Likewise for FinalizationRegistry
mweidner037 commented
Fixed in #237