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

This setup still seems a bit weird, and I don't remember discussing it (although we probably did and I just don't remember). I guess it's OK.

Is there a reason respond(bytesWritten, buffer) takes a view instead of a buffer as the second argument? Maybe it should allow either?

I could also see an argument for respond(view) where we expect authors to do `respond(new Uint8Array(this.byobRequest.view.buffer, 0, bytesWritten))`, but I guess that is pretty ugly.

Hmm, maybe `.respond(bytesWritten)` and `.respondWithNewView(view)`? Where we assume in the latter that bytesWritten = view.byteLength?

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

Received on Friday, 5 February 2016 14:43:49 UTC