Merge "mediawiki.inspect: Remove redundant code for old Opera"

This commit is contained in:
jenkins-bot 2018-08-22 00:55:46 +00:00 committed by Gerrit Code Review
commit ec88ffd230

View file

@ -185,8 +185,6 @@
*/
inspect.dumpTable = function ( data ) {
try {
// Bartosz made me put this here.
if ( window.opera ) { throw window.opera; }
// Use Function.prototype#call to force an exception on Firefox,
// which doesn't define console#table but doesn't complain if you
// try to invoke it.
@ -196,9 +194,7 @@
} catch ( e ) {}
try {
console.log( JSON.stringify( data, null, 2 ) );
return;
} catch ( e ) {}
mw.log( data );
};
/**