Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit 13fca10

Browse files
committed
Match stream.WritableStream.end to stream.Writable.end
Until we decide what to do with WritableStream, fix it to avoid producing any warnings. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
1 parent b111cb1 commit 13fca10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stream.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ stream.WritableStream.prototype.writable;
8686
stream.WritableStream.prototype.write = function(buffer, encoding) {};
8787

8888
/**
89-
* @param {string|buffer.Buffer} buffer
89+
* @param {string|buffer.Buffer=} buffer
9090
* @param {string=} encoding
91+
* @param {function(*=)=} cb
9192
*/
92-
stream.WritableStream.prototype.end = function(buffer, encoding) {};
93+
stream.WritableStream.prototype.end = function(buffer, encoding, cb) {};
9394

9495
/**
9596
*/

0 commit comments

Comments
 (0)