Browse Source

fix debug output for list of match expressions

Kyle P Davis 10 years ago
parent
commit
96d8f5de39
1 changed files with 6 additions and 3 deletions
  1. 6 3
      lib/matcher/ListOfMatchExpression.js

+ 6 - 3
lib/matcher/ListOfMatchExpression.js

@@ -86,9 +86,12 @@ proto.getChildVector = function getChildVector(){
  * @param level
  *
  */
-proto._debugList = function _debugList(debug, level){
-	for (var i = 0; i < this._expressions.length; i++ )
-		this._expressions[i].debugString(debug, level + 1);
+proto._debugList = function _debugList(level){
+	var s = "";
+	for (var i = 0; i < this._expressions.length; i++) {
+		s += this._expressions[i].debugString(level + 1);
+	}
+	return s;
 };
 
 /**