Created
December 11, 2014 17:31
-
-
Save MiguelCastillo/d0e0216b38a58ab69a27 to your computer and use it in GitHub Desktop.
printStack
This file contains 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 printStack() { | |
try { | |
throw new TypeError(""); | |
} | |
catch(ex) { | |
console.log(ex.stack); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment