Re: [TreatNonCallableAsNull] alternative?

On Mon, 12 Mar 2012 01:27:19 +0100, Cameron McCormack <cam@mcc.id.au>  
wrote:

>      callback ErrorEventHandlerCallback = any (Event event, DOMString  
> source, unsigned long lineno, unsigned long column);
>      typedef [TreatNonCallableAsNull] ErrorEventHandlerCallback?  
> ErrorEventHandler;


>    [TreatNonCallableAsNull]
>    callback ErrorEventHandler = any (Event event, DOMString source,  
> unsigned long lineno, unsigned long column);

window.onerror gets invoked with a DOMString as the first argument.  
However, if an error event is fired on or bubbles up to window, there will  
only be one argument, an Event (or something that inherits from Event).

-- 
Simon Pieters
Opera Software

Received on Monday, 12 March 2012 07:25:32 UTC