| |||||||||||||||||||||
SummaryCreates a new JS function that wraps a native C function. | |||||||||||||||||||||
SyntaxJSFunction * JS_NewFunction(JSContext *cx, JSNative call, uintN nargs, uintN flags, JSObject *parent, const char *name);
| |||||||||||||||||||||
DescriptionJS_NewFunction creates a new JS function based on the parameters you pass. call is a native C function call that this function wraps. If you are not wrapping a native function, use JS_DefineFunction , instead. nargs is the number of arguments passed to the underlying C function. JS uses this information to allocate space for each argument.
If
| |||||||||||||||||||||
See Also
|