-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Unable to deconstruct an object that has a reserved keyword #4372
Comments
That's not possible in plain JavaScript either. |
@pushkine So, it will be a syntax error in Svelte too. |
@TehShrike your fiddle makes no sense |
Hey, you're right |
I believe we're currently using some custom parsing logic for the array/object destructuring in each blocks, and that probably doesn't realize that |
Apparently all the way back to 3.0.0, the compiler has never balked at doing something like |
Actually that's probably just a matter of removing the special handling added way back in #385. |
This is fixed in 3.18.2 - https://svelte.dev/repl/8ec7ec1e072b405d90549a5277a9f235?version=3.18.2 |
https://svelte.dev/repl/8ec7ec1e072b405d90549a5277a9f235?version=3.18.1
The text was updated successfully, but these errors were encountered: