Re: Function type

On Wed, 28 Dec 2011 07:21:35 +0100, Cameron McCormack <>  
> I don't think more specs should depend on the definition of Function  
> that's in HTML, since it's kind of non-specific and designed to work  
> with the weirdo timer APIs.  We have callbacks in Web IDL now, and specs  
> that need them should define more specific signatures to use.

You suggested using

   callback Function = any (any... arguments);

in I was wondering if  
that includes [TreatNonCallableAsNull] and if not, how that needs to be  
included. That was part of the reason why it would be nice if Web IDL had  
the definition instead, so we could remove [TreatNonCallableAsNull] and  
just have 'function'. (I believe we discussed this already but I cannot  
find it in the archives. Sorry!)

Anne van Kesteren

Received on Wednesday, 28 December 2011 09:18:37 UTC