Skip to content

Generic error event for EventSource#832

Merged
zetashift merged 2 commits intoscala-js:mainfrom
cornerman:patch-1
Mar 4, 2024
Merged

Generic error event for EventSource#832
zetashift merged 2 commits intoscala-js:mainfrom
cornerman:patch-1

Conversation

@cornerman
Copy link
Copy Markdown
Contributor

According to MDN the error of an EventSource is a generic Event instead of an ErrorEvent: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/error_event

Just caught one of these underspecified errors in the wild :)

According to MDN the error of an EventSource is a generic Event instead of an ErrorEvent: https://developer.mozilla.org/en-US/docs/Web/API/EventSource/error_event
Copy link
Copy Markdown
Contributor

@zetashift zetashift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Copy Markdown
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Looks like this was a regression introduced in 4de6882. I wonder if any more of those changes are wrong 😅

@zetashift zetashift merged commit aca3aa2 into scala-js:main Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants