8 ms·
I was deliberately excluding the constructor situation. I should have made that clearer in my previous comment. I think the way out of the constructor mess is
by Autre 15y ago
I was deliberately excluding the constructor situation. I should have made that clearer in my previous comment. I think the way out of the constructor mess is not to require them at all.
I do think the Object.getPrototypeOf approach is feasible for methods.
- Raynos 15y agothe method fails for the exact same reason. If a single method calls a super method and that method calls another super method then it fails. Object.getPrototypeOf(this).method Always have one value and only one value, calling it more then once leads to infinite recursion.