You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console: console.table doesn't fall back to just logging when given a function #20679
I think this was intentional behavior. It's what Chrome does and it fits my interpretation of the spec. However, Firefox does it differently and the spec for console.table() is just a few sentences long so not very detailed.
Do note that it's possible to attach properties to a function and that our current implementation deals with that well:
Activity
devsnek commentedon May 11, 2018
i think it'd be fine to change it
console: .table fall back to logging for function too
Trott commentedon May 11, 2018
I think this was intentional behavior. It's what Chrome does and it fits my interpretation of the spec. However, Firefox does it differently and the spec for
console.table()is just a few sentences long so not very detailed.Do note that it's possible to attach properties to a function and that our current implementation deals with that well:
console: .table fall back to logging for function too
console: .table fall back to logging for function too