mozilla

Compare Revisions

JS::Value

Change Revisions

Revision 381099:

Revision 381099 by sfink on

Revision 434475:

Revision 434475 by Waldo on

Title:
JS::Value
JS::Value
Slug:
SpiderMonkey/JSAPI_Reference/Jsval
SpiderMonkey/JSAPI_Reference/Jsval
Tags:
"SpiderMonkey", "JSAPI_Reference"
"SpiderMonkey", "JSAPI_Reference"
Content:

Revision 381099
Revision 434475
t302      &nbsp;t302      <br>
303      There was also a further method, <code><a href="/en-US/docs
 >/SpiderMonkey/JSAPI_Reference/JSVAL_IS_OBJECT" title="/en-US/docs
 >/SpiderMonkey/JSAPI_Reference/JSVAL_IS_OBJECT">JSVAL_IS_OBJECT</a
 >>(v)</code>, which did not what you would expect -- return <code>
 >true</code> if the value was an object -- but rather returned tru
 >e if the value was an object <em>or if it was <code>null</code></
 >em>.&nbsp; Uses of this deprecated method should be replaced with
 > <code>v.isObjectOrNull()</code>.

Back to History