Fixes #3063 -- wait a moment so that an error can be raised.

This commit is contained in:
Jeremy Ashkenas
2013-10-20 17:04:52 -03:00
parent 59cf19fd1c
commit eb2ac2c64d
2 changed files with 2 additions and 2 deletions

View File

@@ -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);