-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
If we write JSDoc for a getter using function binding and include an opening paren (, parsing will fail.
<input bind:value={
/** ( */
() => value,
(v) => value = v.toLowerCase()}
/>Reproduction
Logs
Expected token )
https://svelte.dev/e/expected_token
https://svelte.dev/e/js_parse_errorSystem Info
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M3
Memory: 141.58 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.12.3 - /usr/local/bin/pnpm
Browsers:
Chrome: 131.0.6778.265
Chrome Canary: 121.0.6124.0
Safari: 17.4.1
npmPackages:
svelte: ^5.9.0 => 5.17.4Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels