| |||||||||
SummaryConverts a JS value to a JS function. | |||||||||
SyntaxJSFunction * JS_ValueToFunction(JSContext *cx, jsval v);
| |||||||||
DescriptionJS_ValueToFunction converts a specified JS value, v , to a JS function. The actual conversion is performed by the object's convert operation. JS_ValueToFunction returns a pointer to the converted function.
Converting a JS value to a function succeeds if the value is an object for which a function class has been defined, or if the JS value is already a function. If conversion fails,
| |||||||||
See Also
|