4 ms·
Well WTF is this doing https://docs.rs/wasm-bindgen/0.2.11/wasm_bindgen/fn.throw.html https://docs.rs/wasm-bindgen/0.2.11/wasm_bindgen/fn.throw.ht... then ?
by qorrect 4y ago
Well WTF is this doing https://docs.rs/wasm-bindgen/0.2.11/wasm_bindgen/fn.throw.html https://docs.rs/wasm-bindgen/0.2.11/wasm_bindgen/fn.throw.ht... then ?
- miloignis 4y agoCalling into an external JavaScript function, which will then throw a JavaScript exception (as the linked documentation states). Wasm cannot throw the exception itself, nor can it catch the exception. How exceptions are handled when raised in code called via FFI in another language are a property of the embedding and wasm engine, not of wasm itself, which (as of yet, barring that exceptions proposal) has no concept of them besides unrecoverable traps.
- qorrect 4y agoGreat thank you for the info