fixed a bug where while condition was compiling as statement

This commit is contained in:
satyr
2010-10-11 20:29:08 +09:00
parent e89d7a7756
commit 9c55bd59a1
3 changed files with 6 additions and 2 deletions

View File

@@ -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');