Re: [whatwg/streams] Align WritableStream structure with ReadableStream structure (#462)

>  
> -    const normalizedStrategy = ValidateAndNormalizeQueuingStrategy(size, highWaterMark);
> -    this._strategySize = normalizedStrategy.size;
> -    this._strategyHWM = normalizedStrategy.highWaterMark;
> +    return IsWritableStreamLocked(this);
> +  }
> +
> +  getWriter() {
> +    if (IsWritableStream(this) === false) {
> +      throw new TypeError('WritableStream.prototype.getWriter can only be used on a WritableStream');
> +    }
> +
> +    return AcquireWritableStreamDefaultWriter(this);
> +  }

Oh, I see, you did that in the follow-up commit; nevermind!

---
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/462/files/17c3b10dc4243d1d75bb5d07e34397922652a275#r65446812

Received on Wednesday, 1 June 2016 21:32:47 UTC