-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backwards compat concerns with RTCError #2330
Comments
@jan-ivar Your suggestion will remove some of the obstacles to implementation, so it's probably a good idea. |
This removes an obstacle and makes it backwards-compatible. One might argue RTCError is still At risk though, and that the additional fields introduced by it are only useful for debugging if information is provided by the implementation. Slide added. |
FYI it looks like there are other error names than just OperationError, so an RTCError constructor that passes in a name would be needed. |
RTCError are per-spec only constructed in these places:
Chrome generally seem to throw OperationError. I saw a case of InvalidModificationError at replaceTrack but I think that's safe to change to OperationError actually because it generally passes. |
Since no browsers implement RTCError yet, concerns were raised about backwards
compatibility with implementing it.
RTCError
is both a type (with extra attributes), as well as the name of the error.One idea to mitigate compat concerns would be to specify the error names browsers are using today. E.g.:
On the upside it solves compat. On the downside, JS that cares about the attributes would need to check for them.
The text was updated successfully, but these errors were encountered: