← Back to context

Comment by bad_user

2 years ago

I am not getting this behaviour in Firefox 120. Tried it, logged out as well.

> setTimeout(function() { c(); a.resolve(1) }, 5E3);

The code looks like a silly concurrency bug fix, i.e., a lazy way to force ordering.

Or potentially a concurrency bug trigger? "One in 1000 times X takes a bit too long and causes problem Y; I'll make X take minimum 5 seconds so I can trigger Y reliably." Then fixes Y but forgets to remove the delay.