- From: Adam Rice <notifications@github.com>
- Date: Tue, 15 Aug 2017 23:56:08 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 15 August 2017 23:56:32 UTC
ricea commented on this pull request. > + 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, controllerError, '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, controllerError, 'writer rejects with same error'))); + + const reader = ts.readable.getReader(); + + reader.read().catch(t.step_func(e => { + assert_equals(e, controllerError, 'reader rejects with same error'); + t.done(); I'm fixing this in the conversion to promise_test. -- 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_r133332300
Received on Tuesday, 15 August 2017 23:56:32 UTC