[webrtc-pc] Pull Request: Construct RTCErrors with name 'OperationError' instead of 'RTCError'

henbos has just submitted a new pull request for https://github.com/w3c/webrtc-pc:

== Construct RTCErrors with name 'OperationError' instead of 'RTCError' ==
Fixes #2330.

Before merging this PR, we need to check if this is in fact consistent with current implementations.
So far, I've noticed that there is one breaking change for Chrome's replaceTrack() which rejects with InvalidModificationError (though I doubt anybody is relying on that operation failing, it only fails on invalid input or when the PC is closed).

I/we need to take a closer look at Chrome and other browsers. (If different names are needed the PR can be updated to allow constructing with different names.)

See https://github.com/w3c/webrtc-pc/pull/2375

Received on Tuesday, 26 November 2019 17:44:29 UTC