only explicitly add id when scope tracking function expressions - fixes #2617
This commit is contained in:
@@ -699,7 +699,7 @@ export default class Scope {
|
|||||||
// FunctionExpression - id
|
// FunctionExpression - id
|
||||||
|
|
||||||
if (path.isFunctionExpression() && path.has("id")) {
|
if (path.isFunctionExpression() && path.has("id")) {
|
||||||
this.registerBinding("local", path);
|
this.registerBinding("local", path.get("id"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Class
|
// Class
|
||||||
|
|||||||
Reference in New Issue
Block a user