[whatwg/streams] Reference to CopyDataBlockBytes (#746)

In ReadableByteStreamControllerFillPullIntoDescriptorFromQueue [1], CopyDataBlockBytes [2] is referenced at step 10.d:

> Perform ! CopyDataBlockBytes(headOfQueue.[[buffer]].[[ArrayBufferData]], headOfQueue.[[byteOffset]], pullIntoDescriptor.[[buffer]].[[ArrayBufferData]], destStart, bytesToCopy)


According to [2], operation CopyDataBlockBytes is as follows: 

> CopyDataBlockBytes(toBlock, toIndex, fromBlock, fromIndex, count)

Therefore, IIUC, it seems that step 10.d should be:

> Perform ! CopyDataBlockBytes(pullIntoDescriptor.[[buffer]].[[ArrayBufferData]], destStart, headOfQueue.[[buffer]].[[ArrayBufferData]], headOfQueue.[[byteOffset]], bytesToCopy)

[1] https://streams.spec.whatwg.org/#readable-byte-stream-controller-fill-pull-into-descriptor-from-queue 
[2] https://tc39.github.io/ecma262/#sec-copydatablockbytes

-- 
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/streams/issues/746

Received on Monday, 22 May 2017 17:41:17 UTC