- From: Takeshi Yoshino <notifications@github.com>
- Date: Thu, 14 Jan 2016 22:52:03 -0800
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 15 January 2016 07:01:55 UTC
> +  });
> +
> +}, 'ReadableStream pull should be able to error a stream.');
> +
> +promise_test(() => {
> +
> +  let pullCalled = false;
> +
> +  const theError = new Error('rejected!');
> +  const otherError = new Error('other!');
> +
> +  const rs = new ReadableStream({
> +    pull(c) {
> +      pullCalled = true;
> +      c.error(theError);
> +      throw theError;
I've also replaced the assert calls in the promise_test above this one with promise_rejects.
pullCalled has been removed as it's sufficient to expect the exception passed in the pull method.
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/418/files#r49825492
Received on Friday, 15 January 2016 07:01:55 UTC