top | item 32190293 (no title) stickupkid | 3 years ago It does, but the map has a reference to it, so it will "leak" (in gc languages an unwanted reference is considered a leak). If this map got rather large, you could end up with a rather large heap and it would be un-obvious why at first. discuss order hn newest withinboredom|3 years ago Do Promises hold a reference to the chain of functions that end in the result? If so, that seems like a bug. epolanski|3 years ago A promise is just an object, it does not contain any reference to the chained functions.
withinboredom|3 years ago Do Promises hold a reference to the chain of functions that end in the result? If so, that seems like a bug. epolanski|3 years ago A promise is just an object, it does not contain any reference to the chained functions.
epolanski|3 years ago A promise is just an object, it does not contain any reference to the chained functions.
withinboredom|3 years ago
epolanski|3 years ago