New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a TypeError in ReadableStreamBYOBReader constructor if stream isn't a byte stream #638

Merged
merged 6 commits into from Jan 6, 2017
Next

Throw a TypeError in ReadableStreamBYOBReader constructor if stream i…

…sn't a byte stream
  • Loading branch information...
tschneidereit authored and domenic committed Jan 5, 2017
commit 13e1c5378f307907716010aa6d4f5cdcdfcbd478
Copy path View file
@@ -1247,6 +1247,7 @@ ReadableStreamBYOBReader(<var>stream</var>)</h4>
<emu-alg>
1. If ! IsReadableStream(_stream_) is *false*, throw a *TypeError* exception.
1. If ! IsReadableByteStreamController(_stream_.[[readableStreamController]]) is *false*, throw a *TypeError* exception.
1. If ! IsReadableStreamLocked(_stream_) is *true*, throw a *TypeError* exception.
1. Perform ! ReadableStreamReaderGenericInitialize(*this*, _stream_).
1. Set *this*.[[readIntoRequests]] to a new empty List.
ProTip! Use n and p to navigate between commits in a pull request.