Skip to main content
WebAssembly.CompileError - WASM - Web documentation
class WebAssembly.CompileError
extends Error
The `WebAssembly.CompileError` object indicates an error during WebAssembly decoding or validation. [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/CompileError)

Constructors

new
CompileError(
message?: string,
options?: ErrorOptions,
)
Creates a new `WebAssembly.CompileError` object.