You may have noticed some mail looping

2011-02-23 Thread Brendan Eich
Seemingly involving an SMTP Server (likely Microsoft, from the tell-tale) at Adobe and its notorious attribution in Received: headers to the mysterious "Pickup". I've sent mail asking for help getting this fixed. /be ___ es-discuss mailing list es-dis

RE: do-while grammar

2011-02-23 Thread Dave Fugate
*better late than never:)* It's a bit hard to digest, but I'm slowly accumulating this info in the form of disabled Test262 tests and bugs. Wouldn't take too much effort to turn this into something a bit mor

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Herman
>> The simple instanceof check seems simpler and reasonably intuitive. > By "hardcoding" p instanceof Function === true I'm not proposing this -- it's already true. Try it out in SpiderMonkey: js> (Proxy.createFunction({}, function(){}, function(){})) instanceof Function true > you're b

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Bruant
Le 23/02/2011 23:54, David Herman a écrit : >> With your optional argument, I see a second solution that could be >> consistent. The prototype chain could contain the provided prototype >> then Function.prototype ("obj --> proto --> Function.prototype --> >> null" as opposed to your proposition wh

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread Brendan Eich
On Feb 23, 2011, at 2:26 PM, David Herman wrote: > Maciej has also suggested a Function.create(...) API for more lightweight > creation of function subtypes. Maciej proposal, first raised here: https://mail.mozilla.org/pipermail/es-discuss/2009-March/008954.html and recorded as part of a straw

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Herman
> With your optional argument, I see a second solution that could be > consistent. The prototype chain could contain the provided prototype > then Function.prototype ("obj --> proto --> Function.prototype --> > null" as opposed to your proposition which is: "obj --> proto --> null" > ). Hence, the

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Bruant
Le 23/02/2011 23:26, David Herman a écrit : > I've been working on a prototype implementation of the binary data spec in > pure JS (implemented via typed arrays) and I've been bitten by the lack of a > standard mechanism for subclassing Function. > > I'm using proxies for the implementation, and

Re: custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Herman
PS Correction: it's actually a non-standard extension that regexps are callable in SpiderMonkey. So the invariant is that the only callable non-host objects are descendants of Function, or possibly host objects. This doesn't change my overall point, though. On Feb 23, 2011, at 2:26 PM, David He

custom proto arg for Proxy.createFunction?

2011-02-23 Thread David Herman
I've been working on a prototype implementation of the binary data spec in pure JS (implemented via typed arrays) and I've been bitten by the lack of a standard mechanism for subclassing Function. I'm using proxies for the implementation, and Proxy.createFunction doesn't let me specify a custom