aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-28 11:12:47 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-28 11:12:47 +0300
commit896444482a4044c21b68a1eb58cfe8639b628279 (patch)
treea893f8e1bb2d420a591f360b51bb37aca83fe581 /lib/ast.js
parent05e15b1c0c04f673524e0946b5e1b6a60110ada1 (diff)
downloadtracifyjs-896444482a4044c21b68a1eb58cfe8639b628279.tar.gz
tracifyjs-896444482a4044c21b68a1eb58cfe8639b628279.zip
minor
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js4
1 files changed, 2 insertions, 2 deletions
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);
}