assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0,
])), WebAssembly.CompileError, /failed to match magic number/);
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0, 0, 0, 0,
])), WebAssembly.CompileError, /failed to match magic number/);
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0, 0x61, 0x73, 0x6D,
])), WebAssembly.CompileError, /failed to read version/);
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0, 0x61, 0x73, 0x6D, 0, 0, 0, 0,
])), WebAssembly.CompileError, /binary version .* does not match/);
// Core module version should be rejected by the Component constructor.
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0, 0x61, 0x73, 0x6D, 1, 0, 0, 0,
])), WebAssembly.CompileError, /binary version .* does not match/);
// Section parsing stops with bytes left over
assertErrorMessage(() => new WebAssembly.Component(new Uint8Array([ 0, 0x61, 0x73, 0x6D, 0x0d, 0, 1, 0,
0x07, 0x04, // type section, data shorter than section length 0x00, 0x00, 0x06, // custom section to pad out the component 0x05, 0x64, 0x75, 0x6D, 0x6D, 0x79, // "dummy", no data
])), WebAssembly.CompileError, /too many bytes in section/);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-08-26)
¤
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.