add CatchClause scope

This commit is contained in:
Sebastian McKenzie
2014-11-09 13:42:00 +11:00
parent 61ee0ef6f6
commit a909a6febd
2 changed files with 3 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ Scope.prototype.getIds = function () {
return false;
}
});
} else if (t.isCatchClause(block)) {
self.add(block.param, ids);
}
if (t.isFunction(block)) {

View File

@@ -23,6 +23,7 @@
"BlockStatement": ["Statement", "Scope"],
"Program": ["Scope"],
"CatchClause": ["Scope"],
"LogicalExpression": ["Binary"],
"BinaryExpression": ["Binary"],