nzakas / understandinges6

Content for the ebook "Understanding ECMAScript 6"
5.45k stars 796 forks source link

elaboration needed on a small point #391

Open Bamieh opened 7 years ago

Bamieh commented 7 years ago

Hey Nicholas, I am re-reading some parts of your book, and i could not just let go of this little point, so i wanted to share my thoughts with you.

in the section Easy Prototype Access with Super References, you've written that,

Because super references are not dynamic, they always refer to the correct object. In this case, super.getGreeting() always refers to person.getGreeting(), regardless of how many other objects inherit the method.

I believe you mean by not dynamic is that its bound to the [[HomeObject]] instead of using this directly. But my mind kept linking it to dynamic polymorphism, in that case it is dynamic, maybe a rephrase to something like "doesnt depend on "this" in its invocation" might be a little more clearer?

Tell me what you think, cheers!