Re: [streams] Expose the pending pullInto request via byobRequest getter than passing as an argument of pullInto (f6a4974)

Hmm, yeah. I agree that we should refrain from introducing a very different set of arguments.

But as you analyzed, requiring a ArrayBufferView shouldn't be a good idea. The only things the underlying byte source may alter are the contents starting from view.offset and buffer (as it may get transferred). So, accepting the number of bytes written and buffer reference is basically the simplest and ideal (in terms of not receiving invariants) set.

Experimentally implemented your suggestion: 033248191df78b299a643f2e1bc33172472c1dd1

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/commit/f6a4974c72e2fed16f7603c8a1ddfdbb92db5cab#commitcomment-15999049

Received on Wednesday, 10 February 2016 08:34:34 UTC