Re: [whatwg/encoding] Define encodeInto() API (#166)

annevk commented on this pull request.



>  
-    <p class=note><a>UTF-8</a> cannot return <a>error</a>.
+    <ol>
+     <li>
+      <p>If <var>destinationBytes</var>'s <a for="byte sequence">length</a> &minus;
+      <var>written</var> is greater than the number of bytes in <var>result</var>, then:

Yeah, indeed, thanks! (E.g., if we have space for 12 bytes, already written 6 bytes, then writing 6 more bytes should be fine whereas the current wording prohibits that.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/pull/166#discussion_r246005598

Received on Tuesday, 8 January 2019 14:02:03 UTC