@@ -122,7 +122,7 @@ function getJsdocOutput(src, options, done) {
122122 if ( ! fs . existsSync ( jsdocPath ) ) {
123123 throw Error ( 'jsdoc-parse: cannot find jsdoc: ' + jsdocPath ) ;
124124 }
125- var args = [ jsdocPath , '--pedantic' , '-t' , jsdocTemplatePath ] ;
125+ var args = [ '--pedantic' , '-t' , jsdocTemplatePath ] ;
126126 if ( options . html ) {
127127 args = args . concat ( [ '-c' , path . resolve ( __dirname , 'default-conf.json' ) ] ) ;
128128 } else if ( options . conf ) {
@@ -134,7 +134,7 @@ function getJsdocOutput(src, options, done) {
134134 var outputFile = fs . openSync ( outputFilePath , 'w' ) ;
135135 var outputStderrPath = tempPath ( ) ;
136136 var outputStderr = fs . openSync ( outputStderrPath , 'w' ) ;
137- var handle = cp . spawn ( 'node' , args , { stdio : [ process . stdin , outputFile , outputStderr ] } ) ;
137+ var handle = cp . spawn ( jsdocPath , args , { stdio : [ process . stdin , outputFile , outputStderr ] } ) ;
138138 handle . on ( 'error' , done ) ;
139139 handle . on ( 'close' , function ( code ) {
140140 var stderr = fs . readFileSync ( outputStderrPath , 'utf8' ) ;
0 commit comments