Why doesn't console.table (or certain other console methods) work in Firefox, or return an error?
Asked
Active
Viewed 608 times
2 Answers
3
Firefox's built-in Web Console, ignores unknown console calls rather than throw an exception. So while a normal call, e.g.
window.table()
or any unknown method of a normal object, you get something like:
[20:29:35.381] TypeError: window.table is not a function
However:
console.table({foo: 'bar'})
just returns undefined without doing anything, even though:
typeof console.table
returns:
"undefined"

Matthew Flaschen
- 278,309
- 50
- 514
- 539
-
Maybe acepting the answer? – Lucio Sep 01 '14 at 02:34
0
As an update, it works since Firefox 34, see: https://developer.mozilla.org/en-US/docs/Web/API/Console/table

RiZKiT
- 2,107
- 28
- 23