nodes: added missing jump-guard in While::makeReturn, fixing #1850

This commit is contained in:
satyr
2011-11-11 06:56:49 +09:00
parent 9633816d7a
commit 5bf8b422f8
3 changed files with 11 additions and 2 deletions

View File

@@ -1654,7 +1654,9 @@
if (res) {
return While.__super__.makeReturn.apply(this, arguments);
} else {
this.returns = true;
this.returns = !this.jumps({
loop: true
});
return this;
}
};