diff options
Diffstat (limited to 'node_modules/acorn/dist/walk.es.js')
-rw-r--r-- | node_modules/acorn/dist/walk.es.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/acorn/dist/walk.es.js b/node_modules/acorn/dist/walk.es.js index 153534673..40356507d 100644 --- a/node_modules/acorn/dist/walk.es.js +++ b/node_modules/acorn/dist/walk.es.js @@ -68,7 +68,7 @@ function full(node, callback, base, state, override) { ; }(function c(node, st, override) { var type = override || node.type; base[type](node, st, c); - callback(node, st, type); + if (!override) { callback(node, st, type); } })(node, state, override); } @@ -81,7 +81,7 @@ function fullAncestor(node, callback, base, state) { var isNew = node != ancestors[ancestors.length - 1]; if (isNew) { ancestors.push(node); } base[type](node, st, c); - callback(node, st || ancestors, ancestors, type); + if (!override) { callback(node, st || ancestors, ancestors, type); } if (isNew) { ancestors.pop(); } })(node, state); } |