The ErrorEvent interface, inheriting from from its parent Event, represents events providing information related to errors in scripts or in a file. According to specifications, unhandled runtime script errors fire an ErrorEvent at a target and this interface should be exposed to web workers.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent