JSVal JS_ObjectToValue()

Usage

jsval JS_ObjectToValue(JSObject *obj);

Description

Method; 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

Returns

A JSVal structure that contains the object that you passed to the function as an argument.