From a64abddd1ddef868e3221b90d95984a9b64b0b82 Mon Sep 17 00:00:00 2001 From: Richard Bateman Date: Sat, 10 Dec 2011 00:17:46 -0700 Subject: [PATCH] Fixes issue #27 error when output to stdout --- bin/jsctags.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/jsctags.js b/bin/jsctags.js index 0bd3e00..73332e7 100755 --- a/bin/jsctags.js +++ b/bin/jsctags.js @@ -270,4 +270,6 @@ if (opts.hasOwnProperty('jsonp')) { tags.write(out, opts); } -out.end(); +if (out != process.stdout) { + out.end(); +}