Tab Atkins Jr. <mailto:jackalm...@gmail.com>
January 22, 2012 7:36 PM
myCoolObject.prototype[Iterator.getIterator] = function(){...}
Using @ for access, would "myCoolObject.prototype.@Iterator.getIterator = function(){...}" work, or would that attempt to retrieve a property using "Iterator" as a Name, then retrieve the "getIterator" property of that?

To quote D. Duck, "pronoun trouble". By your final "that", you mean the iterator Name instance? If so, no way -- that doesn't make any sense. A dot operator in JS accesses a property value, not key.

So rest assured: the former.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to