- From: Takeshi Yoshino <notifications@github.com>
- Date: Wed, 16 Aug 2017 03:34:37 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 16 August 2017 03:34:59 UTC
tyoshino commented on this pull request.
> + t.step(() => assert_unreached('transform must never be called if start() fails'));
+ },
+ flush() {
+ t.step(() => assert_unreached('flush must never be called if start() fails'));
+ }
+ });
+
+ const writer = ts.writable.getWriter();
+ writer.write('a').then(t.step_func(() => {
+ assert_unreached('writer should be errored if start() fails');
+ }))
+ .catch(t.step_func(e => assert_equals(e, thrownError, 'writer rejects with same error')));
+ writer.close().then(t.step_func(() => {
+ assert_unreached('writer should be errored if start() fails');
+ }))
+ .catch(t.step_func(e => assert_equals(e, thrownError, 'writer rejects with same error')));
OK. Great!
--
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/762#discussion_r133352900
Received on Wednesday, 16 August 2017 03:34:59 UTC