JSVAL_IS_GCTHING

  • Revision slug: SpiderMonkey/JSAPI_Reference/JSVAL_IS_GCTHING
  • Revision title: JSVAL_IS_GCTHING
  • Revision id: 146529
  • Created:
  • Creator: Jorend
  • Is current revision? No
  • Comment style

Revision Content

{{template.Jsapi_ref_header("JSVAL_IS_GCTHING")}}

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.

See Also

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

JSVAL_TO_GCTHING

Revision Source

<p>{{template.Jsapi_ref_header("JSVAL_IS_GCTHING")}}
</p><p>Indicates whether a JS value has a type that is subject to garbage collection.
</p>
<h2 name="Syntax"> Syntax </h2>
<pre class="eval"><b>JSVAL_IS_GCTHING</b>(v)
</pre>
<h2 name="Description"> Description </h2>
<p><code>JSVAL_IS_GCTHING(v)</code> is true if the <code><a href="en/Jsval">jsval</a></code> <code>v</code> is either <code><a href="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>
<h2 name="See_Also"> See Also </h2>
<p>{{template.LXRSearch("ident", "i", "JSVAL_IS_GCTHING")}}
</p><p><a href="en/JSVAL_TO_GCTHING">JSVAL_TO_GCTHING</a>
</p>
Revert to this revision