The `super` keyword doesn't work as it should?
a.d.bergi at web.de
Wed Jul 20 01:26:13 UTC 2016
Raul-Sebastian Mihăilă wrote:
> An alternative would be to consider the object where the method key was
> found as the home object of the method.
That's just as error-prone, method borrowing would only work when the
two objects had the same superclass.
Also, what about methods that are not "found" anywhere when called, for
example when used with `call`/`apply`/`bind`? Or static class methods
that don't use `this` at all and are called like a plain function?
Are you suggesting that every property access that yields a function
implicitly creates a closure over the "home"/"found" object? That's a
no-no for obvious reasons.
More information about the es-discuss