- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 01 Jan 2013 14:06:03 -0500
- To: public-script-coord@w3.org
On 1/1/13 2:08 AM, Brendan Eich wrote: > Private reply: > > Boris Zbarsky wrote: >> 1) Hack instanceof as Gecko has in the past. This is actually a bit >> of a pain to implement even in Gecko, without changes to SpiderMonkey, >> because function objects can't have the magic behavior the RHS needs >> above in SpiderMonkey at the moment. > > What's missing? I still see Class::hasInstance in jsclass.h. Functions can't have a custom JSClass in SpiderMonkey. They always have js::FunctionClass. -Boris
Received on Tuesday, 1 January 2013 19:06:33 UTC