maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
726 stars 58 forks source link

naming dependency #96

Closed vird closed 9 years ago

vird commented 10 years ago

There is nontrivial variable naming dependency in "for + await" see details https://gist.github.com/vird/7653962

outputs start end

expected start 0 1 2 3 4 5 6 7 8 9 10 end

env nodejs version 1.6.3-g

replacing block_start block_end to a b fixes issue

maxtaco commented 10 years ago

Thanks for the bug report. The issue is in For::icedCompileIced, it is emitting --i rather than ++i. Probably what's needed is what regular Coffee does, which is to do a runtime decision based on the ordering of the bounds. This bug is related to #89

maxtaco commented 9 years ago

Closed in v108.0.9.