We're using Runtime.callFunctionOn at a very high rate, and the compiled functions seem to be leaking -- even when using node.js' `global.gc()` or `HeapProfiler.collectGarbage` to manually trigger a full GC before taking a heapdump. Looking at a heapdump, there are many more "(compiled code)" objects which contain the functions passed to callFunctionOn.
I'm reviewing the code for callFunctionOn and the use of a v8::Local seems to suggest that the function should be freed immediately after that C++ scope exits, so I'm confused.
Am I wrong? When would the functions be garbage collected in that case?