Re: constructor, super, and data members issue

2018-08-26 Thread Isiah Meadows
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

Re: constructor, super, and data members issue

2018-08-26 Thread Logan Smyth
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

Re: constructor, super, and data members issue

2018-08-26 Thread Isiah Meadows
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