MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/75nibr/javascripts_promise_is_memory_unsafe/do7lint/?context=3
r/javascript • u/alexelcu • Oct 11 '17
77 comments sorted by
View all comments
13
I tried that code in node 7.10.1 and 8.6.0. It didn't crash at all. It just endlessly printed numbers until I killed it.
1 u/cwmma Oct 11 '17 I wonder if it has to do with async stack traces 8 u/alexelcu Oct 11 '17 No, it's simply Promise's implementation.An implementation that works correctly is possible, as can be seen in Funfix's PR, which is a port of the solution implemented by Scala's Future.
1
I wonder if it has to do with async stack traces
8 u/alexelcu Oct 11 '17 No, it's simply Promise's implementation.An implementation that works correctly is possible, as can be seen in Funfix's PR, which is a port of the solution implemented by Scala's Future.
8
No, it's simply Promise's implementation.
Promise
An implementation that works correctly is possible, as can be seen in Funfix's PR, which is a port of the solution implemented by Scala's Future.
Future
13
u/lachlanhunt Oct 11 '17
I tried that code in node 7.10.1 and 8.6.0. It didn't crash at all. It just endlessly printed numbers until I killed it.