google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 581 forks source link

Make TempVarTransformer use let where possible #1907

Closed arv closed 9 years ago

arv commented 9 years ago

If the generated code outputs let then make the TempVarTransformer use let bindings instead of vars.

arv commented 9 years ago

@johnjbarton TBR

This is a cherry-pick from the strong mode branch.

johnjbarton commented 9 years ago

LGTM