Fixing a WebKit bug to see if promises are made of train tracks
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A WebKit bug (318399, fixed in PR 68749, a 16-line change) caused a short program to hang forever in Bun and Safari 26 instead of crashing. The program makes Promise.resolve's species getter throw, and the engine left the awaited promise permanently pending rather than rejecting it, contrary to the ECMAScript…