Re:Console.log with style
by k3n on Friday April 12, 2013 @04:24PM
(#5540786)
Note: that uses arguments.callee, which is disallowed in ES5 strict-mode.
[ Parent
| on HN ]
After looking at the code in more depth, I feel I should point out that it looks like `arguments.callee` is only the last-ditch fallback for generating a trace. I see baked-in support for Chrome, IE, FF, Safari, and Opera, and so unless your preferred browser is something else (or you want to target every possible browser) then you could change just a few lines to make it strict mode compliant.