Re: [streams] Byte stream update, including reference implementation (#361)

> +});
> +
> +test('ReadableByteStream: read(view), then respond() with too big value', t => {
> +  let controller;
> +
> +  const rbs = new ReadableByteStream({
> +    start(c) {
> +      controller = c;
> +    },
> +    pull() {
> +      t.fail('pull must not be called');
> +      t.end();
> +    },
> +    pullInto(buffer, offset, length) {
> +      try {
> +        controller.respond(2);

Again, including both arguments is important to make it clearer what the bad behavior is that's causing the error.

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

Received on Thursday, 11 June 2015 21:10:50 UTC