Entry: JS_GetFunctionObject (Function)
Summary: Retrieves the object for a specified function.
Syntax:
JSObject * JS_GetFunctionObject(JSFunction *fun);
Description:
JS_GetFunctionObject retrieves the object for a specified function pointer, fun. All functions are associated with an underlying object. For functions you create with JS_NewFunction, the object is automatically created for you. For functions you define with JS_DefineFunction and JS_DefineFunctions, you specify the object(s) as a parameter.
JS_GetFunctionObject always returns a pointer to an object.
See also:
|
|
|