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

#1568, new super in a function body.

This commit is contained in:
Jeremy Ashkenas 2011-08-14 17:24:19 -04:00
parent 8c31f2ee44
commit 7e4d6198d4
2 changed files with 3 additions and 3 deletions

View file

@ -527,8 +527,8 @@
}
Call.prototype.children = ['variable', 'args'];
Call.prototype.newInstance = function() {
var base;
base = this.variable.base || this.variable;
var base, _ref2;
base = ((_ref2 = this.variable) != null ? _ref2.base : void 0) || this.variable;
if (base instanceof Call && !base.isNew) {
base.newInstance();
} else {