Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
7 results across 6 corpora for nullables.
Dictionary 1
nullables
plural of nullable
Developer library 6
WebAssembly reference instructions
This set of pages details the reference instructions available in Wasm to create, test and convert references. References are opaque handles to functions, host (for example JavaScript) values, or garbage-collected objects. Common reference types include [`funcref`](/docs/WebAssembly/Reference/Value_types/funcref) and [`externref`](/docs/WebAssembly/Reference/Value_types/externref). - [`ref.as_non_null`](/docs/WebAss
cast: Wasm reference instruction
The **`ref.cast`** [reference instruction](/docs/WebAssembly/Reference/Reference) casts a reference to a given reference type, trapping if the cast fails. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i32))) (type $point (struct (field $x i32) (field $y i32))) (func $main (local $value anyref) (local.set $value (struct.new $point (i32.const 3) (i32.const 4
null: Wasm reference instruction
The **`ref.null`** [reference instruction](/docs/WebAssembly/Reference/Reference) creates a null reference of a given heap type. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param externref))) (func $main ref.null extern call $log ;; log a null externref ) (start $main) ) ``` ```js interactive-example const url = "{%wasm-url%}"; await WebAssembly.instantiateS
is_null: Wasm reference instruction
The **`ref.is_null`** [reference instruction](/docs/WebAssembly/Reference/Reference) checks whether a reference is null. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i32))) (func $f) (elem declare func $f) (func $main ref.null func ref.is_null call $log ;; log 1: the reference is null ref.func $f ref.is_null call $log ;; log 0: the refer
as_non_null: Wasm reference instruction
The **`ref.as_non_null`** [reference instruction](/docs/WebAssembly/Reference/Reference) converts a nullable reference into a non-nullable one, trapping if the reference is null. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param externref))) (global $greeting (import "js" "greeting") externref) ;; Only accepts non-null references (func $log_non_null (param $value (r
test: Wasm reference instruction
The **`ref.test`** [reference instruction](/docs/WebAssembly/Reference/Reference) checks whether a reference matches a given reference type. tabbed-taller ```wat interactive-example (module (import "console" "log" (func $log (param i32))) (type $point (struct (field i32) (field i32))) (func $main (local $value anyref) (local.set $value (struct.new $point (i32.const 1) (i32.const 2))) (call $log