HelloYu / jsdoc-toolkit

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

Missing semicolon in TokenReader.js, line 17 #335

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This missing semicolon seems to only cause problems for Rhino 1.7R3 -- the 
load() for this file will silently failed, which will lead to errors that look 
like this:

uncaught JavaScript runtime exception: TypeError: 
org.mozilla.javascript.Undefined@4884cebe is not a function, it is undefined. 
(/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js#129)

Easy to fix:

    /**@ignore*/ tokens.last    = function() { return tokens[tokens.length-1]; }; // added semicolon at the end

Original issue reported on code.google.com by tal.liron on 1 Mar 2012 at 8:47

GoogleCodeExporter commented 8 years ago
that worked perfect for me, thanks @tal.liron!

Original comment by gerardob...@gmail.com on 19 Jun 2012 at 2:08