what happens when a Promise never resolves? [duplicate]
问题 This question already has answers here : Node exits without error and doesn't await promise (Event callback) (2 answers) Closed 3 years ago . I have this very confusing snippet of code using es6 async await syntax. What I would expect to happen is that the process hangs on the await line forever, since the resolve function is never called. However, what actually happens is that "start" is outputted and then the process exits with no more output. const simple = async () => { console.log('start