12 Nov 2026

Here is a program that, until July, never finished in Bun or Safari.

never.mjs

const p = Promise.resolve(1);
p.constructor = {
    get [Symbol.species]() {
        throw new Error("boom");
    },
};

console.log("before");
await p;
console.log("done");

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.

node

$ node never.mjs

before

Error: boom

exit 1

$

bun 1.3.14

$ bun never.mjs

before

error: boom

Safari 26 fails the same way as Bun: