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

Object destructuring in @const #164

Closed
janosh opened this issue Jan 30, 2022 · 0 comments
Closed

Object destructuring in @const #164

janosh opened this issue Jan 30, 2022 · 0 comments

Comments

@janosh
Copy link

janosh commented Jan 30, 2022

False positive undefined variables when destructuring object keys in @const tag:

Screen Shot 2022-01-30 at 20 23 58

Minimal REPL

<script>
	const objs = [{a:1, b:2}, {a:3, b:4}]
</script>

{#each objs as obj}
	{@const {a, b} = obj}
	{a} {b}
{/each}
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

No branches or pull requests

1 participant