var r = null; Promise.all([]).then(vs => { r = vs.length; }); __drain(); r