Index: third_party/WebKit/Source/core/streams/ReadableStream.js |
diff --git a/third_party/WebKit/Source/core/streams/ReadableStream.js b/third_party/WebKit/Source/core/streams/ReadableStream.js |
index efac76a889537de85632d6713cd1642caaf30c68..321a812adef995f894f9fba6dc0ba9a0043313a4 100644 |
--- a/third_party/WebKit/Source/core/streams/ReadableStream.js |
+++ b/third_party/WebKit/Source/core/streams/ReadableStream.js |
@@ -172,11 +172,14 @@ |
} |
if (mode === 'byob') { |
- if (IsReadableByteStreamDefaultController(this[readableStreamController]) === false) { |
+ // TODO(ricea): This should be "If |
+ // ! IsReadableByteStreamController(this.[[readableStreamController]]) |
+ // is false". |
+ if (IsReadableStreamDefaultController(this[readableStreamController])) { |
tyoshino (SeeGerritForStatus)
2016/10/20 10:26:01
i think it's ok not to have this if and just throw
Adam Rice
2016/10/20 10:35:34
Done.
|
throw new TypeError(errGetReaderNotByteStream); |
} |
- return AcquireReadableStreamBYOBReader(this); |
+ // TODO(ricea): "Return ? AcquireReadableStreamBYOBReader(this)." |
} |
if (mode === undefined) { |