Opera < 12 is no longer supported in Grade A, which means this
condition can't be reached, unless the variable exists by accident
in a supported browser where we don't want it to (e.g. due to
a gadget, or legacy element-by-id globals)
Change-Id: I2d840ff23397e78a11a6495b90247d3baf124ee5
*/
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.
} catch ( e ) {}
try {
console.log( JSON.stringify( data, null, 2 ) );
- return;
} catch ( e ) {}
- mw.log( data );
};
/**