forgot to inherit For::jumps from While::jumps

This commit is contained in:
Jeremy Ashkenas
2010-12-23 08:14:00 -08:00
parent e983032762
commit 75dfa5af7e
2 changed files with 3 additions and 0 deletions

View File

@@ -1786,6 +1786,7 @@
}
For.prototype.children = ['body', 'source', 'guard', 'step'];
For.prototype.isStatement = YES;
For.prototype.jumps = While.prototype.jumps;
For.prototype.makeReturn = function() {
this.returns = true;
return this;

View File

@@ -1431,6 +1431,8 @@ exports.For = class For extends Base
isStatement: YES
jumps: While::jumps
makeReturn: ->
@returns = yes
this