Closed
Description
Describe the bug
he following code seems to result in a parsing error when using svelte 5.0.0-next.190.
However, if I remove the comments the parsing works fine.
<script>
function foo () {
return "42"
}
</script>
{foo(/*comment*/)}
Reproduction
Logs
Error compiling App.svelte:
Expected token }
System Info
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M3
Memory: 134.83 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.4.1 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.8.1 - /usr/local/bin/npm
pnpm: 9.4.0 - /usr/local/bin/pnpm
Browsers:
Chrome: 126.0.6478.182
Chrome Canary: 121.0.6124.0
Safari: 17.4.1
npmPackages:
svelte: 5.0.0-next.190 => 5.0.0-next.190
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels