E-Ink News Daily

← Back to list

Fixing a WebKit bug to see if promises are made of train tracks

WebKit had a bug where Promise.resolve() with a throwing Symbol.species getter caused browsers like Safari and engines like Bun to hang indefinitely rather than crashing. The author identified and fixed the issue with just a 16-line patch in WebKit/WebKit#68749.

Background

JavaScriptCore powers both Safari and the Bun runtime. When a promise's constructor is tampered with via Symbol.species, the engine needs to correctly handle errors from the getter when resolving nested promises.

Source
Lobsters
Published
Nov 14, 2026 at 12:48 AM
Score
5.0 / 10