diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-28 11:12:47 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-28 11:12:47 +0300 |
commit | 896444482a4044c21b68a1eb58cfe8639b628279 (patch) | |
tree | a893f8e1bb2d420a591f360b51bb37aca83fe581 /lib/ast.js | |
parent | 05e15b1c0c04f673524e0946b5e1b6a60110ada1 (diff) | |
download | tracifyjs-896444482a4044c21b68a1eb58cfe8639b628279.tar.gz tracifyjs-896444482a4044c21b68a1eb58cfe8639b628279.zip |
minor
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |