3 ms·
Important to include the preceding "With GC," In theory you can import DOM functions from runtime & call with references to dom objects now, bypassing JS to ca
by __s 3y ago
Important to include the preceding "With GC,"
In theory you can import DOM functions from runtime & call with references to dom objects now, bypassing JS to call directly into runtime (I say in theory because I'm not in the know whether this is actually possible, but GC at least brings prerequisite mechanisms to get to that point)
- posix86 3y agoHow does GC help with that?
- __s 3y agoGC feature in wasm extends to having opaque references outside linear memory (which may reference objects controlled by host system's gc) avoiding need for js caller to handle resource being freed by wasm code with a pool or something keyed by handles (integers) passed to wasm
- SpaghettiCthulu 3y agoI think it would enable WASM code to hold references to DOM objects that have been designed around garbage collection.