This feature is obsolete. Although it is still supported by browsers, its usage is discouraged in new projects. Try to avoid using it.
Retrieve the given name for a specified function. Use
const char * JS_GetFunctionName(JSFunction *fun);
JS_GetFunctionName retrieves the function name associated with a function pointer,
fun. The return value is either the name of a function, or the string "anonymous", which indicates that the function was not assigned a name when created.
The pointer returned by this function is valid only as long as the specified function,