Will Weak References to Kotlin objects be supported in the WASM target?
They're an important mechanism for implementing some types of caches.
Direct expect/actual to JS WeakRef will only bridge 'external, primitive, string and function types' which is too limiting.
See:
• WASM proposal for WeakRef support
• Kotlin WeakReference type for Native
• WeakReference type for JVM (inc. Kotlin)
➕ 4
a
Artem Kobzar
02/29/2024, 9:36 AM
Could I ask you to create an issue in YouTrack with this description?
We'll take a look at what we could do with it.