Open elkurin opened 4 years ago
User-reported Chromium issue filed: https://bugs.chromium.org/p/chromium/issues/detail?id=1385619
So Chrome/Safari follow the current spec while Firefox is (probably) aligned with the proposed behavior here.
@ asutherland
Shared workers now handle fetch/parse error but not runtime(evaluation) error. This is because we catch fetch/parse error here:
On the other hand, unhandled runtime error is not caught.
This behavior is different from that of dedicated workers which fire an even name error at the associated workers if the event is not handled yet.
It might be better to fire an event for runtime error similarly to dedicated workers. However, this might report to the shared worker instances which are not related to the evaluation error itself because one shared worker might be connected with several different instances and runtime error is invoked from only one of them.
This is also discussed in #5323.