wasmError(
moduleWithSections([
sigSection([badExnType]),
memorySection(0),
tagSection([{ type: 0 }]),
]),
WebAssembly.CompileError,
/tag function types must not return anything/
);
wasmError(
moduleWithSections([
sigSection([emptyType]),
memorySection(0),
tagSection([{ type: 1 }]),
]),
WebAssembly.CompileError,
/function type index in tag out of bounds/
);
(() => { const body = [1];
body.push(...string("mod"));
body.push(...string("exn"));
body.push(...varU32(TagCode));
wasmError(
moduleWithSections([
sigSection([emptyType]),
{ name: importId, body: body },
]),
WebAssembly.CompileError,
/expected tag kind/
);
body.push(...varU32(0));
wasmError(
moduleWithSections([
sigSection([emptyType]),
{ name: importId, body: body },
]),
WebAssembly.CompileError,
/expected function index in tag/
);
body.push(...varU32(1));
wasmError(
moduleWithSections([
sigSection([emptyType]),
{ name: importId, body: body },
]),
WebAssembly.CompileError,
/function type index in tag out of bounds/
);
})();
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.