Fix catch clause bind scope to parent
MODIFY
packages/@romejs/js-compiler/scope/evaluators/CatchClause.ts
packages/@romejs/js-compiler/scope/evaluators/CatchClause.ts
@@ -17,7 +17,7 @@ export default {
if (node.param !== undefined) {
for (const id of getBindingIdentifiers(node.param)) {
// TODO maybe add a `catch` binding type?
- scope.addBinding(
+ newScope.addBinding(
new LetBinding({
node: id,
name: id.name,

Fix catch clause bind scope to parent