only explicitly add id when scope tracking function expressions - fixes #2617
This commit is contained in:
parent
9146a4cc81
commit
37d40a03c1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user