JSVAL_IS_GCTHING

  • Revision slug: SpiderMonkey/JSAPI_Reference/JSVAL_IS_GCTHING
  • Revision title: JSVAL_IS_GCTHING
  • Revision id: 146532
  • Created:
  • Creator: Jorend
  • Is current revision? Yes
  • Comment 16 words removed

Revision Content

Indicates whether a JS value has a type that is subject to garbage collection.

Syntax

JSVAL_IS_GCTHING(v)

Description

JSVAL_IS_GCTHING(v) is true if the jsval v is either JSVAL_NULL or a reference to a value that is subject to garbage collection. JavaScript performs automatic garbage collection of objects, strings, and doubles.

This macro exposes JavaScript engine implementation details and usually isn't what the application really means. See jsval for alternatives.

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

Revision Source

<p>Indicates whether a JS value has a type that is subject to garbage collection.
</p>
<h2 id="Syntax" name="Syntax"> Syntax </h2>
<pre class="eval"><strong>JSVAL_IS_GCTHING</strong>(v)
</pre>
<h2 id="Description" name="Description"> Description </h2>
<p><code>JSVAL_IS_GCTHING(v)</code> is true if the <code><a href="/En/SpiderMonkey/JSAPI_Reference/Jsval" title="en/jsval">jsval</a></code> <code>v</code> is either <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSVAL_NULL" title="en/JSVAL_NULL">JSVAL_NULL</a></code> or a reference to a value that is subject to garbage collection. JavaScript performs automatic garbage collection of objects, strings, and doubles.
</p><p>This macro exposes JavaScript engine implementation details and usually isn't what the application really means. See <code><a href="/En/SpiderMonkey/JSAPI_Reference/Jsval" title="en/jsval">jsval</a></code> for alternatives.
</p><p>{{ LXRSearch("ident", "i", "JSVAL_IS_GCTHING") }}
</p>
Revert to this revision