Skip to content

{@debug} of an awaited expression yields an error #18137

@Tinggaard

Description

@Tinggaard

Describe the bug

If you pass an awaited expression to a {@debug ...} statement, it will error.

I found the bug while investigating a regression in our app introduced in 5.55.3 (unrelated to this issue - still trying to reproduce).

Related: #18024

Reproduction

REPL

<svelte:boundary>
	{@const data = await Promise.resolve("works")}
	{@debug data}
</svelte:boundary>

Logs

System Info

.

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions