mozilla/doctorjs — Issue #27: node.js:201 error when output to stdout
Author: quabug
Created: 2011-11-29 13:04:25+00:00
State: open

output to file is find
```$ jsctags -f tag helloworld.js```

but if try to output to stdout (which is default behavior by tagbar) node.js throw an error
```$ jsctags -f - helloworld.js ```
!_TAG_FILE_FORMAT	2	/extended format/
!_TAG_FILE_SORTED	0	/0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR	Patrick Walton	/pwalton@mozilla.com/
!_TAG_PROGRAM_NAME	jsctags	//
!_TAG_PROGRAM_URL	http://github.com/pcwalton/jsctags	/GitHub repository/
!_TAG_PROGRAM_VERSION	0.1	//
start	helloworld.js	/^helloworld.start = function(){$/;"	f	lineno:18	type:void function()
%anonymous_function	helloworld.js	/^ goog.events.listen(target,['mousedown','touchstart'],function(e){$/;"	f	lineno:41	type:void function(any)
%anonymous_function	helloworld.js	/^ e.swallow(['mouseup','touchend'],function(){$/;"	f	lineno:55	type:void function()
```

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: process.stdout cannot be closed
at WriteStream. (node.js:284:15)
at Object. (/usr/bin/jsctags:273:5)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)