[webrtc-pc] RTCDataChannel.send steps

lgrahl has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCDataChannel.send steps ==
Step 3 states:

> Let data be a byte buffer that represents the result of encoding the method's argument as UTF-8 and increase the value of the [[BufferedAmount]] slot with the length of data.

But step 4 raises TypeError in case the message is too large to be sent (> maxMessageSize). So, [[BufferedAmount]] should not be increased before that.

---

Two more things:

* Step 4 should explicitly mention that *size of data* means the size in bytes.
* A typo in two places: *slot with **the the** length*.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1824 using your GitHub account

Received on Monday, 2 April 2018 18:32:20 UTC