JavaScript-1.5 Reference

JS_GetFunctionName Function

Summary

Retrieves the given name for a specified function.

Syntax

const char * JS_GetFunctionName(JSFunction *fun);

Description

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.

Notes

The pointer returned by this function is valid only as long as the specified function, fun, is in existence.

See Also

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JSFUN_BOUND_METHOD | JSFUN_GLOBAL_PARENT | JS_CallFunction | JS_CallFunctionName | JS_CallFunctionValue | JS_CompileFunction | JS_CompileUCFunction | JS_DecompileFunction | JS_DecompileFunctionBody | JS_DefineFunction | JS_DefineFunctions | JS_GetFunctionObject | JS_NewFunction | JS_SetBranchCallback | JS_ValueToFunction ]

This page was generated by APIDOC