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

Compiler fails with "can't access property 0" #5033

Closed
aredridel opened this issue Jun 17, 2020 · 2 comments · Fixed by #5036
Closed

Compiler fails with "can't access property 0" #5033

aredridel opened this issue Jun 17, 2020 · 2 comments · Fixed by #5036
Labels

Comments

@aredridel
Copy link
Contributor

aredridel commented Jun 17, 2020

Describe the bug

Compiler fails with "can't access property 0" on a simple component.

To Reproduce

https://svelte.dev/repl/a515de653a5b486fb1c0c42140650408?version=3.23.2

Expected behavior
Not crashing

Severity
Annoying at most

@Conduitry
Copy link
Member

Conduitry commented Jun 17, 2020

Accessing this inside an arrow function isn't a great idea anyway, but yeah this shouldn't crash the compiler.

edit: Oh I see it happens with a function () {} expression as well.

@Conduitry
Copy link
Member

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

Successfully merging a pull request may close this issue.

2 participants