GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for WebAssembly.RuntimeError.

Developer library 6

cast: Wasm reference instruction

type is `anyref`. If the reference doesn't match `ref_type`, `ref.cast` traps. When Wasm code is called from JavaScript, a trap is reported as a [`WebAssembly.RuntimeError`](/docs/WebAssembly/Reference/JavaScript_interface/RuntimeError) exception. If `ref_type` is nullable, for example `(ref null $point)`, a null reference passes the cast. If `ref_type` is non-nullable, casting a null reference traps. To check whe

as_non_null: Wasm reference instruction

locals, or table elements. If the reference is null, `ref.as_non_null` traps. When Wasm code is called from JavaScript, a trap is reported as a [`WebAssembly.RuntimeError`](/docs/WebAssembly/Reference/JavaScript_interface/RuntimeError) exception. In the example above, passing `null` as the `greeting` value would cause instantiation to fail with a `RuntimeError`, because the trap happens in the start function. To c

WebAssembly

/WebAssembly/Reference/JavaScript_interface/CompileError)/[`WebAssembly.LinkError()`](/docs/WebAssembly/Reference/JavaScript_interface/LinkError)/[`WebAssembly.RuntimeError()`](/docs/WebAssembly/Reference/JavaScript_interface/RuntimeError) constructors. ## Interfaces - [`WebAssembly.CompileError`](/docs/WebAssembly/Reference/JavaScript_interface/CompileError) - : Indicates an error during WebAssembly decoding or

WebAssembly.Instance() constructor

ssembly/Reference/JavaScript_interface/CompileError), [`WebAssembly.LinkError`](/docs/WebAssembly/Reference/JavaScript_interface/LinkError), or [`WebAssembly.RuntimeError`](/docs/WebAssembly/Reference/JavaScript_interface/RuntimeError) are thrown, depending on the cause of the failure. - Some browsers may throw a RangeError, as they prohibit compilation and instantiation of Wasm with large buffers on the UI thread.

WebAssembly.RuntimeError

The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a [trap](https://webassembly.github.io/spec/core/intro/overview.html#trap). ## Constructor - [`WebAssembly.RuntimeError()`](/docs/WebAssembly/Reference/JavaScript_interface/RuntimeError/RuntimeError) - : Creates a new `WebAssembly.RuntimeError` object. ## Instance properties - WebAssembly.RuntimeError.proto

WebAssembly.RuntimeError() constructor

The **`WebAssembly.RuntimeError()`** constructor creates a new WebAssembly `RuntimeError` object — the type that is thrown whenever WebAssembly specifies a [trap](https://webassembly.github.io/simd/core/intro/overview.html#trap). ## Syntax ```js-nolint new WebAssembly.RuntimeError() new WebAssembly.RuntimeError(message) new WebAssembly.RuntimeError(message, options) new WebAssembly.RuntimeError(message, fileName) n

JSON results · Services directory