JSDOC/Scope.js
[gnome.introspection-doc-generator] / JSDOC / TokenReader.js
index bd67ad8..9fe4fe7 100644 (file)
@@ -54,7 +54,7 @@ const TokenReader = XObject.define(
                 }
                 return true;
             }
-            Options.LOG.inform("tokens : " + tokens);
+
             while (!stream.look().eof) {
                 if (this.read_mlcomment(stream, tokens)) continue;
                 if (this.read_slcomment(stream, tokens)) continue;
@@ -258,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);
                 }