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:
parent
9633816d7a
commit
5bf8b422f8
3 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue