pub unsafe extern "C" fn JS_GetFunctionId(
cx: *mut JSContext,
fun: Handle<*mut JSFunction>,
name: MutableHandle<*mut JSString>,
) -> bool
Expand description
Return the function’s identifier as a JSString, or null if fun is unnamed.
The returned string lives as long as fun, so you don’t need to root a saved reference to it if fun is well-connected or rooted, and provided you bound the use of the saved reference by fun’s lifetime.
This function returns false if any error happens while generating the function name string for a function with lazy name.