Re: Removing 'caller' from WebIDL

On 8/26/11 12:36 AM, Cameron McCormack wrote:
> I haven't heard of any of the other collection objects that
> currently have callers in the spec being required to be typeof "object"

I would suspect that not doing that would not be web-compatible, as a 
gut feeling.

And the third hit on "typeof object" in JavaScript on Google code search 
found that the toJSON function in Prototype 1.6.x always returns 
undefined for input that has typeof "function" while returning something 
quite different for input that has typeof "object".  This discovery did 
not help the gut feeling go away.

I didn't read the other ~300000 hits.

-Boris

Received on Friday, 26 August 2011 04:50:46 UTC