- From: Adam Rice <notifications@github.com>
- Date: Wed, 08 Mar 2017 18:27:27 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 March 2017 02:28:00 UTC
ricea commented on this pull request. > @@ -300,4 +300,36 @@ promise_test(() => { return readableStreamToArray(ts.readable); }, 'methods should not not have .apply() or .call() called'); +promise_test(t => { + const transformer = { + transform() { + transformer.transform = undefined; + throw new TypeError(); + } + }; + const ts = new TransformStream(transformer); + return Promise.all([ + promise_rejects(t, new TypeError(), ts.writable.getWriter().write('a'), 'write() should throw'), + promise_rejects(t, new TypeError(), ts.readable.getReader().read(), 'read() should throw') Oh, that doesn't work because you can't read the queued chunk once the readable is errored. Maybe this isn't observable after all? -- 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/689#discussion_r105074766
Received on Thursday, 9 March 2017 02:28:00 UTC