Are internal data properties ever inherited?

Claude Pache claude.pache at
Tue Oct 8 03:59:44 PDT 2013

Le 8 oct. 2013 à 07:21, Allen Wirfs-Brock <allen at> a écrit :

> On Oct 7, 2013, at 8:05 PM, Nathan Wall wrote:
>>     Set foo to bar.[[Baz]]
>> Does `foo` ever result in a non-undefined value if `bar` doesn't have an own `[[Baz]]` property but inherits from an object that has an internal `[[Baz]]` property?
> I couldn't say, as this notation is never used in the ES specification.  Hence it means whatever the person who wrote it wants it to mean.

It may be useful to recall that there are different concepts in the spec that have a name enclosed in double square brackets. I have found these three:

* attributes of object properties (Section [1];
* internal methods and internal data properties of objects (Section [2];
* fields of records (Section 6.2.2) [3].

Among those concepts, the notation `O.[[X]]` is defined (and, I presume, used) only for fields of records. But there is some risk for the reader to accidentally extend this notation to internal data properties of objects. 



> Allen
> _______________________________________________
> es-discuss mailing list
> es-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list