Static Array and String Generics and Host Objects (ATTN IE Team)

Garrett Smith dhtmlkitchen at gmail.com
Thu Dec 10 19:04:23 PST 2009


On Thu, Dec 10, 2009 at 7:02 PM, Garrett Smith <dhtmlkitchen at gmail.com> wrote:
> On Mon, Dec 7, 2009 at 12:42 PM, Allen Wirfs-Brock
> <Allen.Wirfs-Brock at microsoft.com> wrote:
>> The "static generic" versions of these functions were discussed during the development of ES5 but nobody advocated strongly for their inclusions.

[sni[p

> To be more specific, given anObject that supports [[Get]],
> [[HasProperty]], and has a length property, where a program can
> successfully executes the following code:
>
> var x = anObject.length;
> var h = anObject.childNodes;
> var z = anObject["0"];
>

Edit: Should habve been:
var x = anObject.length;
var h = "0" in anObject; // [[HasProperty]]
var z = anObject["0"];


More information about the es-discuss mailing list