- From: Adam Rice <notifications@github.com>
- Date: Tue, 03 Oct 2017 13:17:41 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 3 October 2017 13:18:42 UTC
ricea commented on this pull request. > +}, 'controller.enqueue() should throw after controller.terminate()'); + +const error1 = new Error('error1'); +error1.name = 'error1'; + +promise_test(t => { + const ts = new TransformStream({ + start(controller) { + controller.enqueue(0); + controller.terminate(); + controller.error(error1); + } + }); + return Promise.all([ + promise_rejects(t, new TypeError(), ts.writable.abort(), 'abort() should reject with a TypeError'), + promise_rejects(t, error1, ts.readable.cancel(), 'cancel() should reject with error1') .cancel() is actually pretty specific. I added reader.closed to the tests just to be sure. I don't want to get into testing Readablestream itself here. -- 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/818#discussion_r142397084
Received on Tuesday, 3 October 2017 13:18:42 UTC