IFClite TypeScript API
    Preparing search index...

    Function isWasmRuntimeTrap

    • True when err is a WebAssembly runtime trap.

      instanceof WebAssembly.RuntimeError alone is not enough: an error thrown inside a Worker/iframe realm and re-raised here fails the identity check because each realm has its own WebAssembly.RuntimeError constructor. The .name fallback is the cross-realm-safe half — RuntimeError is the class name the spec fixes for wasm traps, and structured-cloned errors keep it.

      Parameters

      • err: unknown

      Returns boolean