Skip to main content

check_wasm_bindgen

Function check_wasm_bindgen 

Source
fn check_wasm_bindgen() -> Result<(), String>
Expand description

Reject a wasm-bindgen whose version differs from the library’s.

The CLI and the wasm-bindgen crate must match, and a mismatch produces a version error from deep inside the generated JS that says nothing about the cause, so it is caught here with the command that fixes it.