Closed yurydelendik closed 2 weeks ago
Here is an example with suspending promise that will be never resolved, also promising one is lost:
{ const suspending = new WebAssembly.Suspending(() => new Promise(() => {})); const ins = wasmEvalText(`(module (import "" "s" (func $imp)) (func (export "f") call $imp ) )`, {"": {s: suspending,}}); const promising = WebAssembly.promising(ins.exports.f); promising(); }
Is it correct:
promising()
That is correct. No difference in principle to creating any garbage.
Here is an example with suspending promise that will be never resolved, also promising one is lost:
Is it correct:
promising()
promise still has reference)