mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
* fix: make sure Bun.sleep(Date) doesn't return prematurely Fixes #8834. This makes Bun.sleep(new Date(x)) fulfill its promise only when Date.now() >= x. * resolve test now #8834 is fixed 11 ms is in fact the right limit. --------- Co-authored-by: John-David Dalton <john.david.dalton@gmail.com>