// Output type is nullable if the input type is nullable
wasmFailValidateText(`(module
(func (param externref) (result (ref any))
local.get 0
any.convert_extern
)
)`, /expected/);
wasmFailValidateText(`(module
(func (param anyref) (result (ref extern))
local.get 0
extern.convert_any
)
)`, /expected/);
// Can round trip an externref through anyref and get the same thing back
let {roundtripThroughAny} = wasmEvalText(`(module
(func (export "roundtripThroughAny") (param externref) (result externref)
local.get 0
any.convert_extern
extern.convert_any
)
)`).exports; for (let value of WasmExternrefValues) {
assertEq(value, roundtripThroughAny(value));
}
// Can round trip GC objects through externref and get the same thing back
let {testStruct, testArray} = wasmEvalText(`(module
(type $struct (struct))
(type $array (array i32))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.