From 896444482a4044c21b68a1eb58cfe8639b628279 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Fri, 28 Sep 2012 11:12:47 +0300 Subject: minor --- lib/ast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ast.js') diff --git a/lib/ast.js b/lib/ast.js index 3e6e1771..0b0273c8 100644 --- a/lib/ast.js +++ b/lib/ast.js @@ -698,9 +698,9 @@ function TreeWalker(callback) { TreeWalker.prototype = { _visit: function(node, descend) { this.stack.push(node); - var ret = this.visit(node, function(){ + var ret = this.visit(node, descend ? function(){ descend.call(node); - }); + } : noop); if (!ret && descend) { descend.call(node); } -- cgit v1.2.3