`super` and wrapped statement #1183

Closed
satyr opened this Issue Mar 5, 2011 · 2 comments

Projects

None yet

4 participants

@satyr
Collaborator
$ coffee -bpe 'C::m = -> super'
C.prototype.m = function() {
  return C.__super__.m.apply(this, arguments);
};

$ coffee -bpe 'C::m = -> r = try super'
SyntaxError: cannot call super on an anonymous function.
@TrevorBurnham
Collaborator

Since this bug is tagged for the 1.2 milestone, pinging @michaelficarra. Think you can tackle it?

@michaelficarra
Collaborator

Yeah, I don't think it would be very hard. But finding time any time soon will be difficult. I have a lot on my plate, unfortunately, and have been limiting my github time to simply discussing code, not working on it.

@maxtaco maxtaco added a commit to maxtaco/coffee-script that referenced this issue Apr 11, 2012
@maxtaco maxtaco now it works for all of #1183. This should do it. 7b66e22
@maxtaco maxtaco referenced this issue Apr 11, 2012
Merged

Bugfix 1183 #2252

@jashkenas jashkenas closed this in 34be878 Apr 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment