- From: Domenic Denicola <notifications@github.com>
- Date: Mon, 01 Aug 2016 01:02:39 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 1 August 2016 08:17:40 UTC
> }
>
> - get state() {
> - if (!IsWritableStream(this)) {
> - throw new TypeError('WritableStream.prototype.state can only be used on a WritableStream');
> + abort(reason) {
> + if (IsWritableStream(this) === false) {
> + return Promise.reject(CreateWritableStreamBrandCheckException('abort'));
> + }
> +
> + if (IsWritableStreamLocked(this) === true) {
> + return Promise.reject(new TypeError('Cannot abort a stream that already has a reader'));
s/reader/writer
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/488/files/dfa07172203b4c292cfb5a3fc88e821a1db7c3db#r72937253
Received on Monday, 1 August 2016 08:17:40 UTC