浏览代码

fix debug output for list of match expressions

Kyle P Davis 10 年之前
父节点
当前提交
96d8f5de39
共有 1 个文件被更改,包括 6 次插入3 次删除
  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;
 };
 
 /**