add CatchClause scope
This commit is contained in:
@@ -37,6 +37,8 @@ Scope.prototype.getIds = function () {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
} else if (t.isCatchClause(block)) {
|
||||
self.add(block.param, ids);
|
||||
}
|
||||
|
||||
if (t.isFunction(block)) {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
"BlockStatement": ["Statement", "Scope"],
|
||||
"Program": ["Scope"],
|
||||
"CatchClause": ["Scope"],
|
||||
|
||||
"LogicalExpression": ["Binary"],
|
||||
"BinaryExpression": ["Binary"],
|
||||
|
||||
Reference in New Issue
Block a user