call callback() for write and add jsdoc

This commit is contained in:
Andrey Lushnikov 2017-07-07 09:20:38 -07:00
parent e75f59210e
commit 437276553e

View File

@ -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();
}
}