Skip to content

/* */ comments don't work in inline functions #7456

Closed
@DetachHead

Description

@DetachHead

Describe the bug

"Expected }" syntax error when attempting to use /* comments
image

Reproduction

<button on:click="{() => {} /* asdf */}" />

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (6) x64 Intel(R) Core(TM) i5-8600 CPU @ 3.10GHz    
    Memory: 2.71 GB / 15.78 GB
  Binaries:
    Node: 16.9.1 - C:\Program Files\nodejs\node.EXE
    npm: 7.24.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 99.0.4844.84
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.55)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    svelte: ^3.47.0 => 3.47.0

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs welcomewe're not going to spend any time on this, but we'll accept pull requestsfeature request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions