- From: Takeshi Yoshino <notifications@github.com>
- Date: Tue, 11 Oct 2016 22:41:07 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Wednesday, 12 October 2016 05:41:41 UTC
tyoshino commented on this pull request. > transformStream._chunkPending = true; transformStream._chunk = chunk; const promise = new Promise(resolve => { transformStream._resolveWrite = resolve; + transformStream._rejectWrite = resolve; this should be set to the rejection callback of the promise > @@ -121,8 +123,8 @@ function TransformStreamErrorInternal(transformStream, e) { transformStream._chunk = undefined; - if (transformStream._resolveWriter !== undefined) { - transformStream._resolveWriter(undefined); + if (transformStream._rejectWriter !== undefined) { + transformStream._rejectWriter(e); s/rejectWriter/rejectWrite/ anyway, I just noticed that this is unnecessary since we call _writableController.error() at L118. I'm going to just remove this in #533 -- 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/519#pullrequestreview-3810735
Received on Wednesday, 12 October 2016 05:41:41 UTC