Created
October 30, 2015 11:54
-
-
Save latentflip/b3aa35edc1623c95078a to your computer and use it in GitHub Desktop.
babel-loupe
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
setTimeout(function () { | |
console.log('DELAYED'); | |
}, 1000); | |
var x = 10; | |
var y = 100; | |
function foo(y) { | |
console.log(x,y); | |
} | |
foo(20); |
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
1446205928131 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"setTimeout(function () {\n console.log('DELAYED');\n}, 1000)","loc":{"start":"3:0","end":"5:8"}} | |
{"x":"[undefined]","y":"[undefined]","foo":"[Function]"} | |
1446205928132 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"var x = 10;","loc":{"start":"7:0","end":"7:11"}} | |
1446205928132 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"var y = 100;","loc":{"start":"8:0","end":"8:12"}} | |
1446205928132 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"console.log(x,y)","loc":{"start":"11:2","end":"11:18"}} | |
{"y":20} | |
1446205928132 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"foo(20)","loc":{"start":"14:0","end":"14:7"}} | |
{"x":10,"y":100,"foo":"[Function]"} | |
1446205929135 | |
{"file":"/Users/latentflip/babel-debug/foo.js","content":"console.log('DELAYED')","loc":{"start":"4:2","end":"4:24"}} | |
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment