Hacker News new | past | comments | ask | show | jobs | submit login

This seems like a bug with the unhandled rejected promise handler.

IMO it should only trigger for unhandled promises that are garbage collected. This way the given example wouldn’t cause a false positive




It would. If chapterPromises[0] rejects, then chapterPromises[1] is never handled (because it's redundant), even once it's GC'd.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: