Created
August 30, 2014 20:10
-
-
Save sixertoy/eb40ca4cd17bcb45e33e to your computer and use it in GitHub Desktop.
console-stacktrace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __getErrorObject(){ | |
var obj = {}; | |
var err = (new Error).stack.split("\n"); | |
err = err.splice(1); | |
// [0].match(/:([0-9]+):/)[1]; | |
return err; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment