On Apr 22, 2013, at 17:39 , Jeff Walden wrote:

> On 04/22/2013 04:34 PM, Norbert Lindenberg wrote:
>> 3) Related to that, some properties are documented as part of the wrong 
>> object. For example, the String.prototype documentation shows a length 
>> property. String.prototype doesn't have this property; String instances do.
> 
> String.prototype is a String object.  String objects have a length property.  
> So that's correct, as far as it goes.  (It's kind of useless to explicitly 
> call out "length" as a property of String.prototype, I think, but it's 
> correct to say so.)

You're right. I should have said that it doesn't matter that String.prototype 
has a length because every String instance/value has its own length, and that's 
the one you actually work with. Documenting it in the same way as the 
constructor property doesn't reflect the actual design.

Norbert
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to