mediawiki.inspect#dumpTable: fix broken FF workaround
authorOri Livneh <ori@wikimedia.org>
Thu, 31 Oct 2013 16:47:15 +0000 (09:47 -0700)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Oct 2013 17:25:41 +0000 (17:25 +0000)
In Ib45487d10, we changed to invocation of console#table from
'console.table( data )' to 'console.table.call( console.table, data )'
to force an exception on Firefox, which doesn't define console.table
but doesn't complain if you try to invoke it. It should have been
'console.table.call( console, data )' instead.

Change-Id: Ib2252003f29586a47efb9ec534becc6396936b34

resources/mediawiki/mediawiki.inspect.js

index 454d1a4..668aa2a 100644 (file)
                                // 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.
-                               console.table.call( console.table, data );
+                               console.table.call( console, data );
                                return;
                        } catch (e) {}
                        try {