mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
fixed a bug where while condition was compiling as statement
This commit is contained in:
@@ -1294,9 +1294,9 @@
|
||||
var cond, post, pre, rvar, set, top;
|
||||
top = del(o, 'top') && !this.returns;
|
||||
o.indent = this.idt(1);
|
||||
o.top = true;
|
||||
this.condition.parenthetical = true;
|
||||
cond = this.condition.compile(o);
|
||||
o.top = true;
|
||||
set = '';
|
||||
if (!top) {
|
||||
rvar = o.scope.freeVariable('result');
|
||||
|
||||
Reference in New Issue
Block a user