mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
call callback() for write and add jsdoc
This commit is contained in:
parent
e75f59210e
commit
437276553e
@ -161,9 +161,15 @@ function waitForChromeResponsive(remoteDebuggingPort, shouldWaitCallback) {
|
||||
}
|
||||
|
||||
class ProxyStream extends Duplex {
|
||||
_read(size) { }
|
||||
_read() { }
|
||||
|
||||
/**
|
||||
* @param {?} chunk
|
||||
* @param {string} encoding
|
||||
* @param {function()} callback
|
||||
*/
|
||||
_write(chunk, encoding, callback) {
|
||||
this.push(chunk);
|
||||
this.push(chunk, encoding);
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user