Open JakeChampion opened 3 years ago
@JakeChampion Thank you for your report. Such an edge case, I wonder how you found it?
Im implementing a promise library and ran a big test suite on other promise libraries
Implementing promise in 2020? For study? 😂
The fix should be easy, but it will decrease the performance a little bit. Other methods like Promise.race
also have this bug. I will fix it if I have time. I think people who still use third-party Promise won't care though.
It throws this:
This test was taken from es6-shim -- https://github.com/paulmillr/es6-shim/blob/4a815033b35a051632e035e1ec95aa3b1b43bfdd/test/promise/simple.js#L34-L51