Re:JavaScript and Node performance coding tips to make appli...
by mulrian on Tuesday March 13, 2018 @06:35AM
(#16575011)
Sure that will prevent gc, but that doesn't mean it's a memory leak
[ Parent
| on HN ]
Re:JavaScript and Node performance coding tips to make appli...
by dspillett on Tuesday March 13, 2018 @07:45AM
(#16575324)
It is if the variable is accidentally in global scope due to hoisting if it is not explicitly defined in a finer scope. Not an issue in strict mode, you'll get a reference error instead of an implied global.