There is no such function or method at the moment. You could open a CL
(a code change) that adds it. See
https://v8.dev/docs/contribute for
details on the process.
In case it helps, the path to get from a v8::Function to the `data`
property is this (I think):
1. Convert the v8::Function to a JSFunction
(`i::Handle<i::JSFunction>::cast(Utils::OpenHandle(this))` where
`this` is the v8::Function, see src/api.cc)
2. Get the SharedFunctionInfo, function->shared()
3. Get the FunctionTemplateInfo, shared->get_api_func_data() when
shared->IsApiFunction() is true
4. Get the CallHandlerInfo, function_template_info->call_code()
5. call_handler_info->data()
Hope that helps!