Yeah, I was more focused on the static class side of things, because I
thought they were referring to that. Class instance fields are
different, and so of course, those are never set on the prototype
unless for whatever reason, the parent constructor returns
`Object.getPrototypeOf(this)` instead
Static class fields run their initializers and define the properties at
declaration time, and class constructors have the parent class as the
`[[Prototype]]`, so static field values are inherited. I think this is
adding to confusion though, because while that's absolutely true, that is
not
Every object, including functions, have an internal prototype. Functions
normally have one set to `Function.prototype`, and objects normally inherit
from `Object.prototype` at least indirectly. But because of how prototypes
work, the only requirement for something to be used as a prototype is that
3 matches
Mail list logo