Obsolete since JSAPI 42
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Casts a specified JS object to a JS value.
jsval OBJECT_TO_JSVAL(JSObject *obj);