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](https://github.com/jquery/jquery-ui/pull/1774) for context. (Ideally it would be possible to use both in 1.4.x and 3.x, since that is what jquery-ui uses)