Skip to main content
WebAssembly.RuntimeError - WASM - Web documentation
class WebAssembly.RuntimeError
extends Error
The `WebAssembly.RuntimeError` object is the error type that is thrown whenever WebAssembly specifies a trap. [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/RuntimeError)

Constructors

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