fix memory leak in require.cache (#24282)
Previously only the top-level page would be cleared from the require cache, with this change it also clears `module.parent` and `modules.children`.
Showing
Please
register
or
sign in
to comment
Previously only the top-level page would be cleared from the require cache, with this change it also clears `module.parent` and `modules.children`.