class WebAssembly.RuntimeError
extends Error

The WebAssembly.RuntimeError object is the error type that is thrown whenever WebAssembly specifies a trap.

MDN

Constructors

new
RuntimeError(
message?: string,
options?: ErrorOptions,
)

Creates a new WebAssembly.RuntimeError object.