Skip to content

hangs (infinite loop) on a {const} / {let} whose expression ends with a bare / at end of input #18349

Description

@baseballyama

Describe the bug

I found this issue while working on #18330.

This hang can be particularly problematic when it occurs in the language server.

Reproduction

https://svelte.dev/playground/hello-world?version=5.56.0#H4sIAAAAAAAAE23LsQrCMBSF4Ve5nEkhKK4BBzffQRxScwqBa1Kaq62EvrtkcHP9-P-GHJ6Ex5WqRZYya5QdYzLGPRzGpKzwtwb7TL3rAPe7LtN0qG-qdRtC5T9_lGzMVuHRlCarnOUkRzgYV4O3-cXt7mAh6ZJyhB-DVm5fqIXUbZwAAAA

Logs

System Info

I'm using the playground

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions