let {Life, RealWorldSkills} = RealWorldlet man = new Life('male')let {makeFriendsWith} = RealWorldSkillslet {forget} = RealWorldSkillsfunction haveFunWith(girl){ dateWith(girl) .then(makeHerShameful) .then(takeHerKiss)}makeFriendsWith = makeFriendsWith.bind(man)haveFunWith = haveFunWith.bind(man)forget = forget.bind(man)man.on('girlClosingIn', (girl)=>{ async function relationshipPromoted(){ return makeFriendsWith(girl) } await relationshipPromoted() .then(haveFunWith) .catch(forget)})复制代码