Skip to content

Instantly share code, notes, and snippets.

@thermistor
Forked from paulirish/readme.md
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save thermistor/c1781c46366e4b5a91c4 to your computer and use it in GitHub Desktop.

Select an option

Save thermistor/c1781c46366e4b5a91c4 to your computer and use it in GitHub Desktop.

console.log wrap resolving for the console

I've heard this before:

What I really get frustrated by is that I cannot wrap console.* and preserve line numbers cross-browser.

We enabled this via blackboxing a bit ago.

If you blackbox the script file the contains the console log wrapper, the stack will be corrected in what is outputted to the console.

You can try it out here: http://plnkr.co/edit/3wg4u9HUGXfFH0U7MR7j

Screenshots: image image

Thanks crbug/249575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment