WebAssembly.compile(fooModuleCode).then(m => {
ok(m instanceof WebAssembly.Module, "The WasmModule has been compiled.");
resolve(m);
}, () => {
ok(false, "The compilation of the wasmModule failed.");
resolve(null);
});
});
}
function runTestInIframe() {
let audioContext = new AudioContext();
audioContext.audioWorklet.addModule("worklet_audioWorklet_options.js")
.then(() => create_wasmModule())
.then(wasmModule => {
const node = new AudioWorkletNode(audioContext, 'options', { processorOptions: {
wasmModule, sab: new SharedArrayBuffer(1024),
}});
node.port.onmessage = e => {
ok(e.data.wasmModule instanceof WebAssembly.Module, "WasmModule received");
ok(e.data.sab instanceof SharedArrayBuffer, "SAB received");
SimpleTest.finish();
}
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.