Skip to content

Being able to receive warnings in custom handlers #250

Closed
@eirslett

Description

@eirslett

An example would be when using jquery-migrate in unit tests:

jQuery.migrateWarningHandler(warning => failTheUnitTest(warning))

or one could throw an exception possibly.

Migrate warnings would then fail the build, so problems are discovered early.

See This PR in jquery-ui for context.

(Ideally it would be possible to use both in 1.4.x and 3.x, since that is what jquery-ui uses)

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