r/javascript • u/Kabra___kiiiiiiiid • 5d ago
Fixing a WebKit bug to see if promises are made of train tracks
https://alistair.sh/thenables
28
Upvotes
r/javascript • u/Kabra___kiiiiiiiid • 5d ago
3
u/Discordbothost 5d ago
The regression test checks both resolve and await. Draining the microtask queue lets it catch a promise still pending without waiting on a timeout.
0
u/mcaruso 5d ago
Interesting!