update scope to use new traversal api

This commit is contained in:
Sebastian McKenzie 2015-01-01 22:33:40 +11:00
parent fac4a61245
commit 9a633ebd9c

View File

@ -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;