don't fall back to runtime catch all on locally declared variables

This commit is contained in:
Sebastian McKenzie 2015-04-13 14:26:06 -07:00
parent 5fd5b815ab
commit e12b377014

View File

@ -81,6 +81,7 @@ var astVisitor = traverse.explode({
var obj = node.object;
if (!has(definitions.builtins, obj.name)) return;
if (scope.getBindingIdentifier(obj.name)) return;
var modulePath = definitions.builtins[obj.name];
return t.memberExpression(