-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio worklet error handling #2267
Comments
I think they communicate errors out via |
Yes, this is how this is set up. When an error happens in an |
How does this works if the script itself throws? As far as I can tell from https://html.spec.whatwg.org/#dom-worklet-addmodule it invokes https://html.spec.whatwg.org/#run-a-module-script which invokes https://html.spec.whatwg.org/#report-the-exception which invokes https://html.spec.whatwg.org/#report-the-error which terminates at step 8 because the target presumably doesn't implement |
I guess it doesn't. HTML needs a spec hook so that we can get this and do our error handling. |
The concern of an error reporting mechanism for paintWorklet exposing paint implementation specifics doesn't extend to the "Run a module script" script execution, so perhaps a worklet-level solution could still be an option. Perhaps an exception thrown during If there is any non-determinism (e.g. |
I guess if these are explicitly not to be handled, then all might be in order after all and you should feel free to close this. And then if someone wanted to get at those errors at a future point we could consider how to design something for that use case then? |
Teleconf: Based on the comments #2267 (comment) and #2267 (comment), we will close the event. If this is wrong, please let us know and re-open this issue or file a new one. |
Closure of whatwg/html#2611 made me realize that audio worklets have no error handling yet and since they can communicate this might be useful?
The one weirdness here is that this would be the first place where the class does not inherit from
EventTarget
. (The other solution would be to add that to all worklets, but that would expose the global quite a bit more.)cc @domenic
The text was updated successfully, but these errors were encountered: