Fixing a WebKit bug to see if promises are made of train tracks
Summary
The post analyzes a WebKit bug affecting Promise resolution when a thenable's Symbol.species getter throws, with Bun and Safari behavior, and details how a proper resolve/reject creation order fixes the issue. It also explains the mechanics of Promise.resolve, thenables, and the spec's NewPromiseResolveThenableJob, using a railway metaphor to illustrate success and failure paths.