• Revision slug: SpiderMonkey/JSAPI_Reference/OBJECT_TO_JSVAL
  • Revision title: OBJECT_TO_JSVAL
  • Revision id: 146453
  • Created:
  • Creator: Jorend
  • Is current revision? No
  • Comment 16 words removed

Revision Content

Casts a specified JS object to a JS value.




OBJECT_TO_JSVAL casts obj from type JSObject * to jsval. If obj is NULL, the result is JSVAL_NULL.

{{ LXRSearch("ident", "i", "OBJECT_TO_JSVAL") }}

Revision Source

<p>Casts a specified JS object to a JS value.
<h3 id="Syntax" name="Syntax"> Syntax </h3>
<pre class="eval"><strong>OBJECT_TO_JSVAL</strong>(obj)
<h3 id="Description" name="Description"> Description </h3>
<p><code>OBJECT_TO_JSVAL</code> casts <code>obj</code> from type <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSObject" title="en/JSObject">JSObject</a> *</code> to <code><a href="/En/SpiderMonkey/JSAPI_Reference/Jsval" title="en/jsval">jsval</a></code>. If <code>obj</code> is <code>NULL</code>, the result is <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSVAL_NULL" title="en/JSVAL_NULL">JSVAL_NULL</a></code>.
</p><p>{{ LXRSearch("ident", "i", "OBJECT_TO_JSVAL") }}
Revert to this revision