-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Description
The current specification includes onprocessorerror
(https://www.w3.org/TR/webaudio/#dom-audioworkletnode-onprocessorerror), but I would like to be able to get events from errors that may happen in other contexts.
For example, I have this:
class CustomAudioWorletProcessor extends AudioWorkletProcessor {
constructor(options) {
super();
this.port.onmessage = ((message) => throw new Error('test exception'));
}
}
onprocessorerror
will not receive the test exception, because the error does not occur in the constructor. It is only later when I send a message to the worklet processor that the exception happens.
Is it possible to do this already? Ideally I would be able to register an event handler like so:
myAudioNode.onerror = (event) => { console.log('error in worklet') }
Metadata
Metadata
Assignees
Labels
No labels