JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:05 +0000 (18:08 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:05 +0000 (18:08 +0800)
JSDOC/TokenStream.vala

index 0e2fdf1..1bcbea9 100644 (file)
@@ -215,6 +215,9 @@ namespace JSDOC {
                    if (stop=="") {
                                stop = Lang.matching(start);
                        }
+                       if (stop == null || stop == "") {
+                               throw new JSDOC.TokenStreamError("balance called with invalid stop : %d",howMany);
+                       
                    
                    var depth = 0;
                    var got = [];