mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
LEVEL_PAREN -> LEVEL_LIST
This commit is contained in:
parent
7b9286b2c2
commit
7c3ef56332
2 changed files with 2 additions and 2 deletions
|
@ -1800,7 +1800,7 @@
|
|||
step: this.step
|
||||
}));
|
||||
} else {
|
||||
svar = this.source.compile(o, LEVEL_PAREN);
|
||||
svar = this.source.compile(o, LEVEL_LIST);
|
||||
if ((name || this.own) && !IDENTIFIER.test(svar)) {
|
||||
defPart = "" + this.tab + (ref = scope.freeVariable('ref')) + " = " + svar + ";\n";
|
||||
svar = ref;
|
||||
|
|
|
@ -1438,7 +1438,7 @@ exports.For = class For extends Base
|
|||
if @range
|
||||
forPart = source.compile merge(o, {index: ivar, @step})
|
||||
else
|
||||
svar = @source.compile o, LEVEL_PAREN
|
||||
svar = @source.compile o, LEVEL_LIST
|
||||
if (name or @own) and not IDENTIFIER.test svar
|
||||
defPart = "#{@tab}#{ref = scope.freeVariable 'ref'} = #{svar};\n"
|
||||
svar = ref
|
||||
|
|
Loading…
Reference in a new issue