Re: Interaction with Workers (was Re: setTimeout error handling)

On 03/29/2011 01:39 AM, gaz Heyes wrote:
> I think String is a loose definition, for example what if we call
> setTimeout with an array or object?
> setTimeout(["alert(1)"])

Good lord, why does that work?  :-)

> IMO the spec should say any argument that isn't a function when related
> to setTimeout/setInterval

Agreed.  I will make this change as well, e.g.

s/called with a String argument/called with any argument other than a
Function object/g

-Brandon

Received on Tuesday, 29 March 2011 21:43:32 UTC