Are internal data properties ever inherited?
allen at wirfs-brock.com
Mon Oct 7 22:27:47 PDT 2013
On Oct 7, 2013, at 9:56 PM, Nathan Wall wrote:
> For instance, in the section for Object.prototype.toString (ES6 draft), steps 9-13 check to see if "O has a [[X]] property", where "X" is some internal data property. Based on my experience with Object.prototype.toString, I know that "has a" here really must mean "has an own"... or, put another way, the internal data properties seem to not inherit (so the word "own" isn't necessary).
Actually, the say "if O has a [[X]] internal data property". If you ever see "a [[x]] property", that's an editorial bug. Please report it.
> From this observation, I have concluded internal data properties aren't inherited when the phrase "has a" is used... It seems to me that the obvious conclusion would be that they are never inherited under any situation, no matter the terminology used -- that internal data properties are only ever own properties. I was asking for either confirmation or to be corrected.
The definition of "internal data property" is in http://people.mozilla.org/~jorendorff/es6-draft.html#sec-22.214.171.124
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss