Skip to content

Cannot have a value called ctx #3556

@Rich-Harris

Description

@Rich-Harris

Describe the bug

Svelte gets terribly confused if you name a variable ctx.

To Reproduce

https://svelte.dev/repl/636dd36f255f499fa7ed04c3b1a0dc71?version=3.12.1

Expected behavior

Hello world

Severity

I'm just amazed it hasn't come up already

Additional context

Will be fixed by #3539. Just leaving this here to make sure I don't forget

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