Comment by flohofwoe

Comment by flohofwoe 6 months ago

0 replies

> Will the Wasm GC pave the way to having native object references to JS objects/classes

AFAIK that was already possible via 'WASM reference types': https://caniuse.com/wasm-reference-types

Seeing that this is not yet used by Emscripten JS shims I wonder if there are downsides which prevent its use for something like WebGL objects, or whether just nobody got around yet rewriting the Emscripten shims to externrefs.

PS: probably not worth the effort (see last comment: https://github.com/emscripten-core/emscripten/issues/20021)