X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.js;h=9fe4fe75f81da11e8e8b14ddaece4de9a5514d98;hb=55f8d00207a54cf3c1939cae097c2691cb8cf93c;hp=fb22a3dcbf02683844d28f2124710601b6c15f2d;hpb=c2ce08c77413bc34301b53cf78485f637918e32b;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index fb22a3d..9fe4fe7 100644 --- a/JSDOC/TokenReader.js +++ b/JSDOC/TokenReader.js @@ -63,7 +63,6 @@ const TokenReader = XObject.define( if (this.read_regx(stream, tokens)) continue; if (this.read_numb(stream, tokens)) continue; if (this.read_punc(stream, tokens)) continue; - if(typeof(tokens) == 'undefined') {console.log('empty????');} if (this.read_newline(stream, tokens)) continue; if (this.read_space(stream, tokens)) continue; if (this.read_word(stream, tokens)) continue; @@ -259,9 +258,8 @@ const TokenReader = XObject.define( if (this.collapseWhite) { found = "\n"; } - if (this.keepWhite) { - console.log(typeof(tokens)); - var last = tokens.pop(); + if (this.keepWhite) { + var last = tokens ? tokens.pop() : false; if (last && last.name != "WHIT") { tokens.push(last); }