I can create a new JSContext and use this to perform JavaScript operations. But if I want to shut down the JS Core after I have finished with it (without killing the app this is running in) I can find no means of doing that.
Is there a way to get the iOS system to release all memory/resources associated with the JSCore after I have finished with it?
The Apple docs at https://developer.apple.com/documentation/javascriptcore/jscontext don't provide any guidance for how to remove the JS Core after use. Maybe I am missing something.
I did also look at the underlying JSVirtualMemory instance, but again there is no obvious way to shut this down and release all memory.
If I simply dereference the JSContext instance, I would have hoped that this might trigger cleanup but it does not.