nzakas / understandinges6

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

Potential type in 09 - Classes - [[Construct]] full description #452

Closed ronen-e closed 3 years ago

ronen-e commented 4 years ago

Problem the term [[Construct]] appears 4 times in chapter 9.

The full description is given only once, on line 76:

an internal `[[Construct]]` method

The other instances lack any description apart from [[Construct]]

Reason: lines 661,684,756 would be better understood if a clearer description would be provided as in line 76

Solution: Use the more expansive description

nzakas commented 3 years ago

I did this on purpose. I don't believe it's necessary to repeat "internal" for each instance because the double-bracket notation is indicative of being internal