From 9a633ebd9ca51da9dd8b1ea2203a7d031cb0802c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 1 Jan 2015 22:33:40 +1100 Subject: [PATCH] update scope to use new traversal api --- lib/6to5/traverse/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/traverse/scope.js b/lib/6to5/traverse/scope.js index e5acde3244..0f6b1cf976 100644 --- a/lib/6to5/traverse/scope.js +++ b/lib/6to5/traverse/scope.js @@ -93,7 +93,7 @@ Scope.prototype.getInfo = function () { // this block is a function so we'll stop since none of the variables // declared within are accessible - if (t.isFunction(node)) return false; + if (t.isFunction(node)) return this.stop(); // function identifier doesn't belong to this scope if (block.id && node === block.id) return;