mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixes #3063 -- wait a moment so that an error can be raised.
This commit is contained in:
@@ -1520,7 +1520,7 @@
|
||||
this.body.expressions.push(lname);
|
||||
(_ref4 = this.body.expressions).unshift.apply(_ref4, this.directives);
|
||||
call = Closure.wrap(this.body);
|
||||
if (this.parent) {
|
||||
if (this.parent && call.args) {
|
||||
this.superClass = new Literal(o.scope.freeVariable('super', false));
|
||||
this.body.expressions.unshift(new Extends(lname, this.superClass));
|
||||
call.args.push(this.parent);
|
||||
|
||||
Reference in New Issue
Block a user