chore: add TODO to use size parameter in getReadableFromProtocolStream (#7930)

This commit is contained in:
Alex Rudenko 2022-01-28 09:38:14 +01:00 committed by GitHub
parent 776ced620e
commit 000c1f630d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,9 @@ async function getReadableFromProtocolStream(
let eof = false; let eof = false;
return new Readable({ return new Readable({
async read() { async read() {
// TODO: use the advised size parameter to read function once
// crbug.com/1290727 is resolved.
// Also, see https://github.com/puppeteer/puppeteer/pull/7868.
if (eof) { if (eof) {
return null; return null;
} }