Adding fs.(Read|Write)Stream.close().

It's undocumented, but it is present in the source code and programs rely on it.
This commit is contained in:
John Vilk
2014-11-12 13:07:51 -05:00
parent 39531c32fe
commit f5f114f1e6
2 changed files with 14 additions and 9 deletions
+1
View File
@@ -91,6 +91,7 @@ function stream_readable_pipe_test() {
var z = zlib.createGzip();
var w = fs.createWriteStream('file.txt.gz');
r.pipe(z).pipe(w);
r.close();
}
////////////////////////////////////////////////////