1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Merge branch 'master' of git://github.com/Tim-Smart/coffee-script

This commit is contained in:
Jeremy Ashkenas 2010-02-23 20:51:29 -05:00
commit 5cd8f2c52c

View file

@ -908,7 +908,7 @@ ForNode: exports.ForNode: inherit Node, {
if range
index_var: scope.free_variable()
source_part: source.compile_variables(o)
for_part: index_var + '=0, ' + source.compile(merge(o, {index: ivar, step: @step})) + ', ' + index_var + '++'
for_part: index_var + ' = 0, ' + source.compile(merge(o, {index: ivar, step: @step})) + ', ' + index_var + '++'
else
index_var: null
source_part: svar + ' = ' + @source.compile(o) + ';\n' + @idt()