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

Cannot use @debug block with multiple arguments #739

Closed
dkzlv opened this issue Jan 6, 2021 · 0 comments
Closed

Cannot use @debug block with multiple arguments #739

dkzlv opened this issue Jan 6, 2021 · 0 comments
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.

Comments

@dkzlv
Copy link

dkzlv commented Jan 6, 2021

Describe the bug
If you pass multiple arguments to {@debug} it will result in an error (will compile though).

To Reproduce

<script lang="ts">
  let a = 1,
    b = 2;
</script>

<!-- Error: JSX expressions may not use the comma operator. Did you mean to write an array? -->
{@debug a, b}

System (please complete the following information):

  • OS: Mac OS
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode
@dkzlv dkzlv added the bug Something isn't working label Jan 6, 2021
dummdidumm pushed a commit that referenced this issue Jan 8, 2021
@dummdidumm dummdidumm added the Fixed Fixed in master branch. Pending production release. label Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Fixed in master branch. Pending production release.
Projects
None yet
Development

No branches or pull requests

2 participants