Handling Errors
A simple demonstration on how to catch an error from AudioWorkletProcessor with onprocessorerror event handler in AudioWorkletNode. Open up the console to see the events being fired.
See Chrome Developers Article: Enter Audio Worklet for more information.