Function js_sys::WebAssembly::compile
source · pub fn compile(buffer_source: &JsValue) -> Promise
Expand description
The WebAssembly.compile()
function compiles a WebAssembly.Module
from WebAssembly binary code. This function is useful if it is
necessary to a compile a module before it can be instantiated
(otherwise, the WebAssembly.instantiate()
function should be used).