[whatwg/streams] Fix a few bugs in spec algorithms (#643)

These are all issues where the reference implementation is either correct or, in the `ReadableByteStreamControllerPullInto` case, doesn't make a testable difference. (For the reference implementation we could test that it invokes the `view`'s `buffer` and `byteOffset` property getters only once, but that doesn't make sense for actual implementations because those must directly access the underlying slots.)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/streams/pull/643

-- Commit Summary --

  * Normative: Fix ReadableByteStreamControllerRespondWithNewView to compare firstDescriptor.[[byteLength]] with view.[[ByteLength]] instead of view.[[ByteOffset]]
  * Normative: Fix incorrect assert in ReadableByteStreamControllerCommitPullIntoDescriptor
  * Normative: Construct emptyBuffer from data stored in pullIntoDescriptor slots instead of from, nonexistant, slots on TypedArray

-- File Changes --

    M index.bs (6)
    M reference-implementation/lib/readable-stream.js (2)

-- Patch Links --

https://github.com/whatwg/streams/pull/643.patch
https://github.com/whatwg/streams/pull/643.diff

-- 
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/pull/643

Received on Tuesday, 10 January 2017 14:10:50 UTC