sycamore::web::js_sys::WebAssembly

Function validate

source
pub fn validate(buffer_source: &JsValue) -> Result<bool, JsValue>
Expand description

The WebAssembly.validate() function validates a given typed array of WebAssembly binary code, returning whether the bytes form a valid Wasm module (true) or not (false).

MDN documentation