We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b72995e commit 97eddc0Copy full SHA for 97eddc0
src/migrate.js
@@ -49,7 +49,7 @@ function migrateWarn( msg ) {
49
if ( !warnedAbout[ msg ] ) {
50
warnedAbout[ msg ] = true;
51
jQuery.migrateWarnings.push( msg );
52
- jQuery.migrateWarnings.asErrors.push( msg );
+ jQuery.migrateWarnings.asErrors.push( new Error( msg ) );
53
if ( console && console.warn && !jQuery.migrateMute ) {
54
console.warn( "JQMIGRATE: " + msg );
55
if ( jQuery.migrateTrace && console.trace ) {
0 commit comments