You-Dont-Know-JS icon indicating copy to clipboard operation
You-Dont-Know-JS copied to clipboard

this & prototypes, chapter 5 #Setting & Shadowing Properties

Open beiweiqiang opened this issue 8 years ago • 2 comments

If the myObject object already has a normal data accessor property called foo directly present on it, the assignment is as simple as changing the value of the existing property.

and

  1. If a normal data accessor (see Chapter 3) property named foo is found anywhere higher on the [[Prototype]] chain, and it's not marked as read-only (writable:false) then a new property called foo is added directly to myObject, resulting in a shadowed property.

Is there really has data accessor property? I think threre are only have data properties and accessor properties. And in Chapter 3, I can't find any accurate definition about data accessor property.

Have you ever say

For accessor-descriptors, the value and writable characteristics of the descriptor are moot and ignored

Why not change "data accessor property" to "data property"?

beiweiqiang avatar Oct 16 '16 08:10 beiweiqiang

@getify It is the second edition be available as an update for the kindle version? or it will be a different book?

glrodasz avatar Oct 18 '18 15:10 glrodasz

different book.

getify avatar Oct 18 '18 18:10 getify