Mozilla.com

Table of contents
  1. 1. Syntax
  2. 2. Description
Table of contents
  1. 1. Syntax
  2. 2. Description

Deprecated

Retrieve the given name for a specified function. Use JS_GetFunctionId instead.

Syntax

const char * JS_GetFunctionName(JSFunction *fun);
Name Type Description
fun JSFunction * Pointer to a JS function from which to derive the name.

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.

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

LXR ID Search for JS_GetFunctionName

Page last modified 20:10, 21 Aug 2008 by Jorend

Files (0)