Let us say I have a function object in JS.
function myFunction(){}
I am assuming that by assigning to null in javascript code, it could be made available for garbage collection.
myFunction = null;
Is there a way to receive a callback notifying that a function object is being collected just like we have for external objects (JsCreateExternalObject)?
Let us say I have a function object in JS. function myFunction(){} I am assuming that by assigning to null in javascript code, it could be made available for garbage collection. myFunction = null;
Is there a way to receive a callback notifying that a function object is being collected just like we have for external objects (JsCreateExternalObject)?