Skip to content

if/else regression in 3.9.2 #3505

@burningTyger

Description

@burningTyger

Describe the bug
{#if "Eva".startsWith('E')}
eee
{:else}
rrr
{/if}

will throw an error

To Reproduce
https://svelte.dev/repl/60ba4405814042e4925edc98e3bcc797?version=3.9.2

Expected behavior
no error

Stacktraces
Rollup: Unexpected token (Note that you need

Severity
breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions