Source code

Revision control

Copy as Markdown

Other Tools

const { test } = wasmEvalText(`
(module
(type $f (func (result i32)))
(func (export "test") (type $f)
ref.null $f
ref.test (ref null $f)
)
)
`).exports;
assertEq(test(), 1);