Worker/SharedWorker should fire Event instead of ErrorEvent in case of parsing error
<rdar://problem/114694487>
Pull request: https://github.com/WebKit/WebKit/pull/17219
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/41737
Committed 267546@main (276241243511): <https://commits.webkit.org/267546@main> Reviewed commits have been landed. Closing PR #17219 and removing active labels.