X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.js;h=9fe4fe75f81da11e8e8b14ddaece4de9a5514d98;hb=3c287c0bc7f97e6b840f52522b4f4f72f0551669;hp=a45bb0ad5a3d6b03b32f08b0b3c878a4a1e474d9;hpb=e1b2ee18a5135507483eec649299cdf8d006d8d6;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index a45bb0a..9fe4fe7 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -56,7 +56,6 @@ const TokenReader = XObject.define( } while (!stream.look().eof) { - print_r(tokens); if (this.read_mlcomment(stream, tokens)) continue; if (this.read_slcomment(stream, tokens)) continue; if (this.read_dbquote(stream, tokens)) continue; @@ -259,8 +258,8 @@ const TokenReader = XObject.define( if (this.collapseWhite) { found = "\n"; } - if (this.keepWhite) { - var last = tokens.pop(); + if (this.keepWhite) { + var last = tokens ? tokens.pop() : false; if (last && last.name != "WHIT") { tokens.push(last); }