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

2009-09-04 Thread Allen Wirfs-Brock
Message- >From: P T Withington [mailto:p...@pobox.com] >Sent: Friday, September 04, 2009 11:34 AM >To: Brendan Eich >Cc: Allen Wirfs-Brock; Mark S. Miller; es-discuss@mozilla.org >Subject: Re: (function foo(){}).propertyIsEnumerable("prototype"): true >or false?

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

2009-09-04 Thread P T Withington
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-october

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

2009-09-04 Thread Brendan Eich
On Sep 3, 2009, at 8:48 PM, Allen Wirfs-Brock wrote: ES3, 15.3.5.2, says the prototype property of function instances is enumerable. ES5, 13.2 step 17, says the prototype property of function instances is not enumerable. ES5, 15.3.5.2 also says non-enumerable so at least it is internally

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

2009-09-03 Thread Allen Wirfs-Brock
la.org] On Behalf Of Jeff Walden >Sent: Thursday, September 03, 2009 8:15 PM >To: Mark S. Miller >Cc: es-discuss@mozilla.org >Subject: Re: (function foo(){}).propertyIsEnumerable("prototype"): true >or false? > >On 3.9.09 20:04 , Mark S. Miller wrote: >> I don'

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

2009-09-03 Thread Jeff Walden
On 3.9.09 20:04 , Mark S. Miller wrote: I don't remember discussing this. But if we had, our general principle is that we first need to be compatible with the cross-browser web, and only second with the text of the ES3 standard. A bit of testing reveals that 'prototype' is enumerable on Firefox a

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

2009-09-03 Thread Mark S. Miller
On Thu, Sep 3, 2009 at 7:36 PM, Jeff Walden wrote: > ES3, 15.3.5.2, says the prototype property of function instances is > enumerable. > > ES5, 13.2 step 17, says the prototype property of function instances is not > enumerable. > > Was this change intentional, and if so, can someone point me to di

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

2009-09-03 Thread Jeff Walden
ES3, 15.3.5.2, says the prototype property of function instances is enumerable. ES5, 13.2 step 17, says the prototype property of function instances is not enumerable. Was this change intentional, and if so, can someone point me to discussion of the change? I don't care one way or the other,