fastjs-team / core

Fastjs is a useful, lightweight JavaScript library for any types of project.
https://fastjs.dev
MIT License
341 stars 37 forks source link

Request await won't end #129

Closed xiaodong2008 closed 1 month ago

xiaodong2008 commented 1 month ago

What is the current behavior?

await request.get('https://reqres.in/api/users').then(() => {
  console.log("then")
});
console.log("end")

It will only log then

What is the expected behavior?

It should log then, then output end

Steps to reproduce the problem

Upgrade your version to v1.0.0-alpha.10, problem starts at this version.

Link to minimal reproduction

https://stackblitz.com/edit/fastjs-reproduce-zrvk6a?file=src/main.ts

System Info

No response

Any additional comments?

No response

Confirmations

xiaodong2008 commented 1 month ago

Hmm, it seems like the problem starts at v1.0.0-alpha.12 -> v1.0.0-alpha.13.

xiaodong2008 commented 1 month ago

Fixed: 0896235e4fb07aaf1ffe87e336bf52a68f2c3e33