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;