- From: Adam Rice <notifications@github.com>
- Date: Tue, 03 Oct 2017 13:15:19 +0000 (UTC)
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 3 October 2017 13:16:25 UTC
ricea commented on this pull request. > + 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') + ]); +}, 'controller.error() after controller.terminate() with queued chunk should error the readable'); + +test(() => { + new TransformStream({ + start(controller) { + controller.terminate(); + assert_throws(new TypeError(), () => controller.error(error1), 'error() should throw'); Thanks for bringing this up. I had forgotten about it actually. I filed #822 to track the changes to transform stream. -- 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_r142396480
Received on Tuesday, 3 October 2017 13:16:25 UTC