- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 30 Jun 2015 01:39:45 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 30 June 2015 08:40:20 UTC
> + DetachReadableByteStreamReader(reader);
> +
> + return;
> + }
> +
> + pullIntoDescriptor.bytesFilled += bytesWritten;
> +
> + if (pullIntoDescriptor.bytesFilled >= pullIntoDescriptor.elementSize) {
> + this._pendingPullIntos.shift();
> +
> + let remainder;
> + if (pullIntoDescriptor.bytesFilled % pullIntoDescriptor.elementSize > 0) {
> + remainder = buffer.slice(result.bytesUsed, pullIntoDescriptor.bytesFilled);
> + }
> +
> + RespondToReadIntoRequest(reader, pullIntoDescriptor.buffer, pullIntoDescriptor.bytesFilled);
Can we move this before `let remainder`? If so we can make that code simpler.
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/361/files#r33551403
Received on Tuesday, 30 June 2015 08:40:20 UTC