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.
Kind regards, Bergi _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

