async function f() { throw "nope"; } var r = null; f().catch(e => { r = e; }); __drain(); r