| |||||||||||||||||||||
SummaryCreates a function and assigns it as a property to a specified JS object. | |||||||||||||||||||||
SyntaxJSFunction * JS_DefineFunction(JSContext *cx, JSObject *obj, const char *name, JSNative call, uintN nargs, uintN flags);
| |||||||||||||||||||||
DescriptionJS_DefineFunction defines a single function and assigns it as a property (method) to a specified object, obj .
If it successfully creates the property,
| |||||||||||||||||||||
See Also |