Javascript – Unhandled Promise rejection despite common understanding
Recently I've stumbled upon an interesting bug. In the essence, the problem boils down to this example: const waitResolve = (ms) => new Promise((resolve) => { setTimeout(() => { console.log(`Waited to resolve for ${ms}ms`); resolve(ms); }, ms); }); const waitReject…