wenchun / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

TypeError: Can't use instanceof on a non-object. #200

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. As soon as I have a non-js file in the folder, that gets parsed, I get
this error message.
2. When I parse the same folder with all non-js files removed everything
works fine...

using jsdebug it sais:
org.mozilla.javascript.EcmaError: TypeError: Can't use instanceof on a
non-object.(C:/Documents and
Settings/.../jsdoc-toolkit/app/lib/JSDOC/\JsDoc.js#92

What version of the product are you using? On what operating system?
jsdoctoolkit 2.1.0, WinXP, Java 1.6.0_11

Original issue reported on code.google.com by simon.sp...@gmail.com on 10 Feb 2009 at 3:45

GoogleCodeExporter commented 8 years ago
I believe this is the same defect as was reported in issue #193

Original comment by micmath on 15 Feb 2009 at 12:08

GoogleCodeExporter commented 8 years ago
I found a better solution than what was presented: Change line 92 of JsDoc.js 
to:

return ext.indexOf(thisExt) > -1 || (JSDOC.handlers && thisExt in 
JSDOC.handlers); 

Original comment by gboy...@gmail.com on 17 Mar 2009 at 9:44