Bug 1890793: Assert CallArgs::newTarget is not gray. r=spidermonkey-reviewers,sfink...
[gecko.git] / dom / worklet / tests / worklet_audioWorklet_WASM.js
blob1215b4c8d018e7dac1251887f812c1ab6460903e
1 class WasmProcessWorkletProcessor extends AudioWorkletProcessor {
2   constructor(...args) {
3     super(...args);
4     this.port.onmessage = e => {
5       // Let's send it back.
6       this.port.postMessage(e.data);
7     };
8   }
10   process(inputs, outputs, parameters) {
11     // Do nothing, output silence
12     return true;
13   }
16 registerProcessor("wasm", WasmProcessWorkletProcessor);