- From: Adam Rice <notifications@github.com>
- Date: Tue, 11 Oct 2016 01:08:24 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Tuesday, 11 October 2016 08:08:52 UTC
ricea commented on this pull request. > + return closePromise.then(value => assert_equals(value, undefined, 'fulfillment value must be undefined')); +}, 'fulfillment value of ws.close() call must be undefined even if the underlying sink returns a non-undefined ' + + 'value'); + +async_test(t => { + const thrownError = new Error('throw me'); + const ws = new WritableStream({ + close() { + throw thrownError; + } + }); + + const writer = ws.getWriter(); + + promise_rejects( + t, thrownError, writer.close(), 'close promise', 'close promise should be rejected with the thrown error'); Sorry. I failed to spot that they take different arguments. The semantics are also slightly different. I am wondering whether we need to add a method named promiseRejectsWithStrictEquality() or similar. -- 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/529
Received on Tuesday, 11 October 2016 08:08:52 UTC