From #49 Later, the Rust backend will send errors together with the shader's ID to the frontend. - Pass in an "error handler" object, and call a function on it. Use https://github.com/rustwasm/wasm-bindgen/issues/1428 - TODO: Answer that Reddit question https://www.reddit.com/r/rust/comments/kkzdy6/wasm_bindgen_js_object_with_a_key_id_how_do_i/ - TODO: Answer that SO question https://www.reddit.com/r/rust/comments/kkzdy6/wasm_bindgen_js_object_with_a_key_id_how_do_i/ - TODO: Update the docs? https://rustwasm.github.io/wasm-bindgen/examples/import-js.html
From #49
Later, the Rust backend will send errors together with the shader's ID to the frontend.