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

> +    return CancelReadableByteStream(this._ownerReadableByteStream, reason);
> +  }
> +
> +  read(view) {
> +    if (!IsReadableByteStreamByobReader(this)) {
> +      return Promise.reject(
> +        new TypeError(
> +            'ReadableByteStreamByobReader.prototype.read can only be used on a ReadableByteStreamByobReader'));
> +    }
> +
> +    if (view === undefined) {
> +      return Promise.reject(new TypeError('Valid view must be provided'));
> +    }
> +
> +    const ctor = view.constructor;
> +    let elementSize = 1;

Done https://github.com/whatwg/streams/commit/afeede5f436a7b1ddc162818090cfb78f8d744f3

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

Received on Tuesday, 16 June 2015 07:43:31 UTC