Skip to content

Deprecate onerror #1745

@Rich-Harris

Description

@Rich-Harris

There's no value in a user-supplied onerror — it's not like onwarn where you can filter out warnings you don't want to deal with. An error is an error. The user should wrap svelte.compile in a try-catch block.

I think we should noisily deprecate it, and remove it in v3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions