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:
parent
8c31f2ee44
commit
7e4d6198d4
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue