Skip to content

Instantly share code, notes, and snippets.

@xeoncross
Created July 9, 2018 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeoncross/e0c74243ade7247aeb4c27a5dc6259b8 to your computer and use it in GitHub Desktop.
Save xeoncross/e0c74243ade7247aeb4c27a5dc6259b8 to your computer and use it in GitHub Desktop.
Testing getting line numbers from Javascript errors
function foo() { try { Math.ciel(foo); } catch (e) { console.log(e.stack.match(/\n\s+at \S+:\d/g)); } } function bar() { foo(); } bar();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment