Skip to content

Destructuring with fallback and then reassigning in {#each} is broken #13822

@wackbyte

Description

@wackbyte

Describe the bug

In non-runes mode, destructuring an object with a fallback and then assigning to that variable in a callback does not seem to mutate it.

When the button is clicked in the REPL, this is the output:

1 false
2 false

It should be:

1 false
2 true

Reproduction

REPL

Logs

No response

System Info

REPL, Svelte 5.0.5, Firefox iOS

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions