Explorer

core.wasm-runtime-closure-new

description
Runtime function 31 of the definy compiler (exported as closure_new): closure_new(index, captured) -> value: a function value of the function table index and the captured variables. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  0,
  @wasm.i32-const,
  5,
  @wasm.local-get,
  0,
  @wasm.local-get,
  1,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-closure,
  @wasm.end
]
visibility
public
core.wasm-runtime-closure-new (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: HhjS5NPGrz6THt1caD3WCWC1xLz8EmDMrKjXp44DTDw
content hash: j8DSQHn3v7Zy21T-rUZleh5RAJuGstNyA_wRBiAedRk