- From: Takeshi Yoshino <notifications@github.com>
- Date: Thu, 15 Oct 2015 02:12:59 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Thursday, 15 October 2015 09:13:29 UTC
> +            assert_equals(r, theError, 'cancel should reject with the thrown error');
> +            test6.done();
> +        }));
> +});
> +
> +var test7 = async_test('Underlying source: calling enqueue on an empty canceled stream should not throw');
> +test7.step(function() {
> +    var controller;
> +    var rs = new ReadableStream({
> +        start: function(c) {
> +            controller = c;
> +        }
> +    });
> +
> +    rs.cancel();
> +    controller.enqueue('a') // Calling enqueue after canceling should not throw anything.
semicolon
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/397/files#r42099490
Received on Thursday, 15 October 2015 09:13:29 UTC