Thursday 31 October 2019

Question about some code

https://github.com/hakarapet/nodejs-design-patterns/blob/master/design_patterns/factory/libs/Response.jsI am wondering if the rObj would lead to some kind of memory leak. I don't think it's possible, because const is block-scoped and all of the used heap and stack gets flushed out after the request get through, but I am wondering if I might be wrong.

Submitted October 31, 2019 at 10:14PM by jesusscript

No comments:

Post a Comment