Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[svelte 5] Cross of variables in event functions #9653

Closed
CodexKI opened this issue Nov 26, 2023 · 1 comment · Fixed by #10620
Closed

[svelte 5] Cross of variables in event functions #9653

CodexKI opened this issue Nov 26, 2023 · 1 comment · Fixed by #10620
Assignees
Milestone

Comments

@CodexKI
Copy link

CodexKI commented Nov 26, 2023

Describe the bug

the variable "method" is getting conffused with the destructured variable "method" of object in array methods

Reproduction

svelte 5 playground

Logs

No response

System Info

return undefined

Severity

annoyance

@dummdidumm
Copy link
Member

dummdidumm commented Nov 27, 2023

Another hoisting-related bug: hoisting should not be done here because the variable name is shadowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants