Skip to content

Commit

Permalink
Fixed browserify#899 - replaced .close() with .destroy() for stream b…
Browse files Browse the repository at this point in the history
…ecause of Node 0.8
  • Loading branch information
kika committed May 2, 2015
1 parent 42aee9c commit ce7eaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var outfileExists = true;
if (outfile) {
var tmp = fs.createReadStream(outfile);
tmp.on('error', function() { outfileExists = false; });
tmp.close();
tmp.destroy();
bundle.pipe(fs.createWriteStream(outfile));
}
else {
Expand Down

0 comments on commit ce7eaea

Please sign in to comment.