- From: Cristiano Belloni via GitHub <sysbot+gh@w3.org>
- Date: Wed, 25 Apr 2018 22:21:02 +0000
- To: public-houdini-archive@w3.org
Currently (Chrome 66), `AudioWorkletNodes` can specify an `onprocessorerror` callback, which gets an `Event` whenever the worklet throws. @hoch kindly answered to my question [in this issue](https://github.com/WebAudio/web-audio-api/issues/1282) an pointed me to this issue. In my opinion, the most important info that error handling should extract from a worklet are those exposed by `ErrorEvent`s: `message`, `filename`, `lineno` and `colno` are essential for automating logging (ie, failing worklets on the client reporting to an error handler logging onto a server) and online editing (ie, let the user edit a worklet and dynamically running it - which is what I'm trying to do). Could I suggest to have an error handling mechanism taking into the necessity of passing these information back to the parent? @hoch's preference would be > to expose ErrorEvent in the WorkletGlobalScope rather than AudioWorkletGlobalScope, but other folks might think otherwise. which I believe it makes sense (all worklets exposing the same error handling mechanism), but I don't know the internals and / or the concerns regarding this approach. Thanks! -- GitHub Notification of comment by cristiano-belloni Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/433#issuecomment-384452322 using your GitHub account
Received on Wednesday, 25 April 2018 22:21:15 UTC