r/javascript • • Oct 11 '17

JavaScript's Promise is Memory Unsafe

https://alexn.org/blog/2017/10/11/javascript-promise-memory-unsafe.html
70 Upvotes

77 comments sorted by

View all comments

1

u/Quabouter Oct 12 '17

Thank you for this article. I think this actually happens more than people here believe. In fact: after reading your article I'm quite sure I've actually written this on more than one occasion. Every application has an infinite loop at the top-level, and in non-web settings it isn't uncommon to write this loop yourself (e.g. A game loop). I have written such loops in an async recursive manner (event loops for games and main loops for TUIs), and now that I read your article I think that at least some of them suffer from this issue.