blob: a6d4f0e2e8ef2988b10d3bfaddebdad80d6f540f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class NewAfterSuper extends AudioWorkletProcessor {
constructor() {
super()
let message = {threw: false};
try {
new AudioWorkletProcessor()
} catch (e) {
message.threw = true;
message.errorName = e.name;
message.isTypeError = e instanceof TypeError;
}
this.port.postMessage(message);
}
}
registerProcessor("new-after-super", NewAfterSuper);
|