Skip to main content
WebAssembly.validate - WASM - Web documentation
function WebAssembly.validate
validate(bytes: BufferSource): boolean
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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/validate)

Parameters

Return Type

boolean