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