2 ms·
`(new Error()).stack` is non-standard. But that’s a nice hack, nevertheless.
by cristiantincu 14y ago
`(new Error()).stack` is non-standard. But that’s a nice hack, nevertheless.
- niggler 14y agoThe underlying construct (console.log processing "%c" and styles) is nonstandard to begin with.
- cristiantincu 14y agoYes. It will not break, though. Unless you’re running it on an old IE that doesn’t host the `window.console` object.