mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
nodes: added missing jump-guard in While::makeReturn, fixing #1850
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user