- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 14 Jun 2021 13:34:08 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 14 June 2021 20:34:40 UTC
@domenic approved this pull request.
Spec looks good to me at this point! I guess the new error cases, including for non-byte tee() are testable (although probably not in the reference implementation).
> ::
1. [=Queue a microtask=] to perform the following steps:
1. Set |reading| to false.
- 1. Let |value1| and |value2| be |value|.
- 1. If |canceled2| is false and |cloneForBranch2| is true, set |value2| to ?
- [$StructuredDeserialize$](? [$StructuredSerialize$](|value2|), [=the current Realm=]).
- 1. If |canceled1| is false, perform ?
+ 1. Let |chunk1| and |chunk2| be |chunk|.
+ 1. If |canceled2| is false and |cloneForBranch2| is true,
+ 1. Let |cloneResult| be [$StructuredClone$](|chunk2|).
+ 1. If |cloneResult| is an abrupt completion,
+ 1. Perform ! [$ReadableStreamDefaultControllerError$](|branch1|.[=ReadableStream/[[controller]]=], |cloneResult|.\[[Value]]).
Original error as-is seems good. It might contain useful information!
--
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/1114#pullrequestreview-683327139
Received on Monday, 14 June 2021 20:34:40 UTC