JSVal JS_ObjectToValue()
Description
This function stores an object return value in a JSVal. Use JS_ NewArrayObject() to create an array object; use JS_SetElement() to define its contents.
Arguments
JSObject *obj
- The
objargument is a pointer to theJSObjectobject that you want to convert to aJSValstructure.
Returns
A JSVal structure that contains the object that you passed to the function as an argument.