Skip to content

JS Parse Error for valid typescript #15425

@jhwz

Description

@jhwz

Describe the bug

It seems when you have an expression in svelte component of the form <variable> as something ||= <expr> svelte is throwing

Assigning to rvalue
https://svelte.dev/e/js_parse_error

Reproduction

https://svelte.dev/playground/dad6fe4d3b7343f0ae6f5edba84c2a6b?version=5.21.0

Logs

System Info

NA

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions