var r = null; var inner = Promise.resolve(77); new Promise((res, rej) => { res(inner); }).then(v => { r = v; }); __drain(); r