X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FTokenReader.js;h=9fe4fe75f81da11e8e8b14ddaece4de9a5514d98;hb=76403eff4ef6e64d68f22883edf1c32d9059d4e5;hp=5294a06d18ba9e680c6c5abf970ed100e402913a;hpb=8cb1307c5442c26492ddcb453b812ea2e40e331c;p=gnome.introspection-doc-generator diff --git a/JSDOC/TokenReader.js b/JSDOC/TokenReader.js index 5294a06..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) { - if(typeof(tokens) == 'undefined') {console.log('empty????');} - var last = tokens.pop(); + if (this.keepWhite) { + var last = tokens ? tokens.pop() : false; if (last && last.name != "WHIT") { tokens.push(last); }