(function foo(){}).propertyIsEnumerable("prototype"): true or false?

P T Withington ptw at pobox.com
Fri Sep 4 11:34:28 PDT 2009

On 2009-09-04, at 13:24, Brendan Eich wrote:

> I hope it doesn't break anything on the web. It could, because using  
> for-in to inspect properties and extend base objects with copies of  
> them is standard practice (Doug's "Swiss inheritance", search for  
> "Swiss" in http://www.cosmik.com/aa-october99/stan_freberg.html).

One small datapoint:  OpenLaszlo does not expect enumerability of  
function prototypes.  We learned by trial and error that browsers  
varied and work around that for both inspecting and extending.

More information about the es-discuss mailing list