Skip to content

Instantly share code, notes, and snippets.

@latentflip
Created October 30, 2015 11:54
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 latentflip/b3aa35edc1623c95078a to your computer and use it in GitHub Desktop.
Save latentflip/b3aa35edc1623c95078a to your computer and use it in GitHub Desktop.
babel-loupe
setTimeout(function () {
console.log('DELAYED');
}, 1000);
var x = 10;
var y = 100;
function foo(y) {
console.log(x,y);
}
foo(20);
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