- From: Adam Rice <notifications@github.com>
- Date: Fri, 22 Sep 2017 11:13:09 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 22 September 2017 11:13:31 UTC
ricea commented on this pull request. > @@ -150,28 +131,10 @@ function TransformStreamEnqueueToReadable(transformStream, chunk) { } } -function TransformStreamError(transformStream, e) { - if (transformStream._errored === true) { - throw new TypeError('TransformStream is already errored'); - } - - TransformStreamErrorInternal(transformStream, e); -} - -function TransformStreamErrorIfNeeded(transformStream, e) { - if (transformStream._errored === false) { - TransformStreamErrorInternal(transformStream, e); - } -} - +// This is a no-op if both sides are already errored. function TransformStreamErrorInternal(transformStream, e) { That makes sense. -- 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/800#discussion_r140468296
Received on Friday, 22 September 2017 11:13:31 UTC