[whatwg/streams] When underlyingSink.close() resolves, assert state (#641)

Previously, WritableStreamDefaultControllerProcessClose checked the
state was "closing" or "errored" when underlyingSink.close()
resolved. In fact it can't be anything else, so make it an assert
instead.

Thanks to @tyoshino for spotting this.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * When underlyingSink.close() resolves, assert state

-- File Changes --

    M index.bs (2)
    M reference-implementation/lib/writable-stream.js (5)

-- Patch Links --

https://github.com/whatwg/streams/pull/641.patch
https://github.com/whatwg/streams/pull/641.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/641

Received on Friday, 6 January 2017 08:19:00 UTC