Fixing a WebKit bug to see if promises are made of train tracks
Don't worry if this looks confusing. The JavaScript spec says that because the getter throws an error, then await p should also throw, and so the program should crash. Node.js does, but Safari 26 and Bun 1.3.14 print 'before', report the error, and then hang. Bun and Safari both embed JavaScriptCore so the behaviour is the same - the promise is never settled! It is neither fulfilled nor rejected, so it stays pending forever. This was WebKit bug 318399.
✓ Verified working
Checked Nov 17, 2026 · 441ms
📝 Your Private Notes & Highlights 🔒 Only visible to you
Log in or create a free account to keep private highlights and personal notes on your saved pins.
Creator Trophy & Press Kit
Featured on Storesso
Are you the creator of alistair.sh? Share your verified feature badge on your website, or export a custom 4:5 editorial social card for Instagram and X.
4:5 Social Studio
Generate a 1080×1350 vertical high-res feature card tailored for social sharing.
Instagram & X Feature Card
Export a polished, high-resolution 4:5 editorial graphic displaying your verified inclusion in the Storesso Discovery Index. Perfect for launch threads, founder updates, and newsletters.
Rendered at 1080×1350px (Retina ready) · No attribution watermark required.