Maciej Stachowiak:
> ECMA-262 actually allows typeof to return anything at all for host  
> objects (which all of the DOM binding objects are).

Of course you’re correct, I forgot about that.

> So it would not be an ECMA-262 violation, technically, for an
> uncallable object to give typeof == 'function', but I do think it
> would be a bad idea.

I agree, it doesn’t seem to useful to make the object return 'function'
for typeof when it can’t be called.

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

Reply via email to