ref.null
Push a NULL function reference onto the stack.

Syntax

ref.null func

Stack In

NONE

Stack Out

funcref A funcref data type with a NULL value.

Example

;; Create default table of function references
(table 4 funcref)

;; Create clear table function
(func $clearTable
  ;; Set the function at index 0
  i32.const 1

  ;; Set the function reference value to NULL
  ref.null func

  ;; Set the table with the NULL function reference
  table.set

  ;; The table index 0 has a NULL function reference
)