Skip to content

Compiler error "Cannot read property 'name' of null" with two-way-binding + brackets #602

@TehShrike

Description

@TehShrike

Svelte version 1.20.2

Template snippet:

<input type='checkbox' bind:checked='todo["done"]'>

Expected behavior: should compile as happily as if I had used bind:checked='todo.done'

Observed behavior: compiler errors out with Cannot read property 'name' of null

Reproduction: https://svelte.technology/repl?version=1.20.2&gist=6bc409d8cf45766230d012b355ebcf7c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions