1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

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;
}
};