Re: [streams] Move stuff into controller to make RS and RBS closer (#418)

> +  });
> +
> +}, '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;

should be otherError, right? And probably want to use `{ name: 'rejected!' }`, `{ name: 'other' }` so that you can use `promise_rejects` and stuff. See https://github.com/whatwg/streams/commit/7f19175415d9b57af04cb8c2cd355ca38101f0aa

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/418/files#r49801381

Received on Thursday, 14 January 2016 23:24:25 UTC