Skip to content

Cannot use @debug block with multiple arguments #739

@dkzlv

Description

@dkzlv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions