- From: isonmad <notifications@github.com>
- Date: Fri, 04 Nov 2016 14:50:33 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 4 November 2016 21:51:05 UTC
isonmad commented on this pull request. > + + return promise_rejects(t, error1, writer.close(), 'close should reject with the thrown error'); +}, 'close: throwing getter should cause writer close() to reject'); + +promise_test(t => { + const ws = new WritableStream({ + get write() { + throw error1; + } + }); + + const writer = ws.getWriter(); + + return promise_rejects(t, error1, writer.write('a'), 'write should reject with the thrown error') + .then(() => { + return promise_rejects(t, error1, writer.closed, 'closed should reject with the thrown error'); Wait, what do you mean? -- 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/597
Received on Friday, 4 November 2016 21:51:05 UTC