Last active
August 29, 2015 14:14
-
-
Save karenpeng/cb8e3be06140b38571e5 to your computer and use it in GitHub Desktop.
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
foo(); | |
var test; | |
function foo(){ | |
function bar() { | |
test = console.trace(); | |
} | |
bar(); | |
} | |
console.log(test); | |
//it logs out the trace while test to be undefined | |
//is there a way to catch things from console.trace()? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment