Closed zenparsing closed 8 years ago
+1 for this. If not, is it possible to make this a compile time error?
Leaving it a syntax error for now.
Can we re-open this please? It seems to be a rather trivial and maybe unimportant change, but one that should definitely be made.
Just added support in 0533fdae49940be8fed3407bb6d7852ee0f53de9 . Good?
Thanks for bringing this back up.
LGTM after a quick glance. Thanks!
We currently throw a runtime error if the operand is a super reference. We can probably remove this restriction though, as it seems pretty clear what the semantics would be. Given something like:
The function
fn
would beB.prototype.foo
bound to the currentthis
value.