wasm-bindgen-cli-support 0.2.118

Shared support for the wasm-bindgen-cli package, an internal dependency
Documentation
;; @xform import "" "a" () externref_owned

(module
  (import "" "a" (func $a (result i32)))
  (func (export "foo") (result i32)
    call $a)
  (func $alloc (export "__externref_table_alloc") (result i32)
    i32.const 0)
  (func $dealloc (export "__externref_table_dealloc") (param i32))
)

(; CHECK-ALL:
(module
  (type (;0;) (func (result i32)))
  (type (;1;) (func (result externref)))
  (import "" "a" (func $a (;0;) (type 1)))
  (table $__wbindgen_externrefs (;0;) 1024 externref)
  (export "foo" (func 2))
  (func $"a externref shim" (;1;) (type 0) (result i32)
    (local i32 externref)
    call $a
    local.set 1
    call $alloc
    local.tee 0
    local.get 1
    table.set $__wbindgen_externrefs
    local.get 0
  )
  (func (;2;) (type 0) (result i32)
    call $"a externref shim"
  )
  (func $alloc (;3;) (type 0) (result i32)
    i32.const 0
  )
  (@custom "target_features" (after code) "\01+\0freference-types")
)
;)