only explicitly add id when scope tracking function expressions - fixes #2617

This commit is contained in:
Sebastian McKenzie 2015-10-28 22:54:37 +00:00
parent 9146a4cc81
commit 37d40a03c1

View File

@ -699,7 +699,7 @@ export default class Scope {
// FunctionExpression - id
if (path.isFunctionExpression() && path.has("id")) {
this.registerBinding("local", path);
this.registerBinding("local", path.get("id"));
}
// Class