Skip to content

Commit

Permalink
Take the first value statement
Browse files Browse the repository at this point in the history
  • Loading branch information
imteekay committed Jul 8, 2023
1 parent cb614e8 commit e224a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function bind(m: Module) {
} else {
symbol.declarations.push(statement);
if ([Node.Var, Node.Let].includes(statement.kind)) {
symbol.valueDeclaration = statement;
symbol.valueDeclaration ||= statement;
}
}
} else {
Expand Down

0 comments on commit e224a68

Please sign in to comment.