Bringing setTimeout to ECMAScript
Jorge
jorge at jorgechamorro.com
Sun Mar 20 03:03:06 PDT 2011
On 20/03/2011, at 04:11, Brendan Eich wrote:
>
> We need to be careful about order, though.
Of course, yes, please.
> If setTimeout(f1, 1000) schedules f1 to be called at t1, and setTimeout(f2, 0) schedules f2 at t2, then if t2 >= t1, f1 should be called first. I'm not sure all browsers implement this.
The only place that I know where this
setTimeout( f, 1);
setTimeout( g, 2);
will eventually fire g() before f() is nodejs: <https://github.com/joyent/node/pull/604>
I've never seen that in any browser.
--
Jorge
More information about the es-discuss
mailing list