I'd be reasonably sure that there isn't a memory leak, as removeAllCached has been around for 5+ years and I'd have thought this would come up already if there was a problem.
I imagine most likely you still have a reference to some part of the module that you loaded kicking around? Potentially typing dump() in the LHS might give you some clues. If there is a reference, even though the modules list is empty you'd still have the data kicking around.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I'd be reasonably sure that there isn't a memory leak, as
removeAllCached
has been around for 5+ years and I'd have thought this would come up already if there was a problem.I imagine most likely you still have a reference to some part of the module that you loaded kicking around? Potentially typing
dump()
in the LHS might give you some clues. If there is a reference, even though the modules list is empty you'd still have the data kicking around.