Re: [whatwg/streams] Remove _errored and _storedError from TransformStream (#800)

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