OBJECT_TO_JSVAL

  • 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.

Syntax

OBJECT_TO_JSVAL(obj)

Description

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.
</p>
<h3 id="Syntax" name="Syntax"> Syntax </h3>
<pre class="eval"><strong>OBJECT_TO_JSVAL</strong>(obj)
</pre>
<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") }}
</p>
Revert to this revision