diff options
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -859,7 +859,7 @@ TreeWalker.prototype = { if (!ret && descend) { descend.call(node); } - this.pop(node); + this.pop(); return ret; }, parent: function(n) { @@ -873,9 +873,8 @@ TreeWalker.prototype = { } this.stack.push(node); }, - pop: function(node) { - this.stack.pop(); - if (node instanceof AST_Lambda) { + pop: function() { + if (this.stack.pop() instanceof AST_Lambda) { this.directives = Object.getPrototypeOf(this.directives); } }, |