- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 11 Jun 2015 14:10:22 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 11 June 2015 21:10:50 UTC
> +});
> +
> +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