Adding back in the closed-comprehensions tests.

This commit is contained in:
Jeremy Ashkenas
2010-11-03 22:29:05 -04:00
parent d5f639fc50
commit a8b36b231c
3 changed files with 39 additions and 2 deletions

View File

@@ -1293,7 +1293,7 @@ exports.For = class For extends Base
hasCode = @body.contains (node) -> node instanceof Code
name = not @pattern and @name?.compile o
index = @index?.compile o
ivar = if not index or hasCode then scope.freeVariable 'i' else index
ivar = if not index then scope.freeVariable 'i' else index
varPart = guardPart = defPart = retPart = ''
idt = @idt 1
unless hasCode