google / traceur-compiler

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

Fix issue with block bindings in while/do-while loops #1971

Closed arv closed 9 years ago

arv commented 9 years ago

The transformer was incorrectly calling transformAny with undefined.

Fixes #1970

arv commented 9 years ago

@johnjbarton PTAL

johnjbarton commented 9 years ago

LGTM, but I don't see immediately how the fix and the bug are connected.

arv commented 9 years ago

A while back I made the transformers and visitors more strict. They now fail when undefined is passed which was the case because WhileStatement does not have an initializer.