X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.js;h=9fe4fe75f81da11e8e8b14ddaece4de9a5514d98;hb=cc935efc3f7afc2b006802fc8e53ce6f2f49996c;hp=6ee83b99a83bb4c1b517d4e2b29c299face756cc;hpb=61373dc4e1077ba12162044fb3c7830164922c08;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index 6ee83b9..9fe4fe7 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -56,7 +56,6 @@ const TokenReader = XObject.define( } while (!stream.look().eof) { - console.log(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); }