pull/16100/head
Rich Harris 4 months ago
parent c9ee8df1a5
commit 3536a9fd82

@ -17,7 +17,7 @@ export function visit_function(node, context) {
for (const [name] of context.state.scope.references) {
const binding = context.state.scope.get(name);
if (binding) {
if (binding && binding.scope.function_depth < context.state.scope.function_depth) {
context.state.expression.references.add(binding);
}
}

Loading…
Cancel
Save