This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. 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,