Skip to content

Instantly share code, notes, and snippets.

@jkrems
Created June 14, 2014 18:06
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 jkrems/b910ec720ad833a76328 to your computer and use it in GitHub Desktop.
Save jkrems/b910ec720ad833a76328 to your computer and use it in GitHub Desktop.
What traceur does to your code; compiled via `traceur --block-binding true --module let.js --out let.compiled.js`
System.register("let", [], function() {
"use strict";
var __moduleName = "let";
{
try {
throw undefined;
} catch (x) {
x = 10;
}
}
console.log(x);
return {};
});
System.get("let" + '');
{ let x = 10; } console.log(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment