JS_GetPropertyDefault

  • Revision slug: SpiderMonkey/JSAPI_Reference/JS_GetPropertyDefault
  • Revision title: JS_GetPropertyDefault
  • Revision id: 325883
  • Created:
  • Creator: ethertank
  • Is current revision? Yes
  • Comment

Revision Content

{{ jsapi_minversion_header("1.8.5") }}

Please provide a description for this function.

Syntax

JSBool JS_GetPropertyDefault(JSContext *cx, JSObject *obj, const char *name,
    jsval def, jsval *vp);
Name Type Description
cx JSContext * The context. {{ Jsapi-requires-request() }}
obj JSObject *  
name const char *  
def jsval  
vp jsval  

Description

{{todo("Please provide a description.")}}

See also

  • {{todo}}

Revision Source

<div>{{ jsapi_minversion_header("1.8.5") }}</div>

<p>Please provide a description for this function.</p>

<h2 id="Syntax" name="Syntax">Syntax</h2>

<pre class="syntaxbox">
JSBool <strong>JS_GetPropertyDefault</strong>(JSContext *cx, JSObject *obj, const char *name,
    jsval def, jsval *vp);</pre>

<table class="fullwidth-table">
  <tbody>
    <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
    <tr>
      <td><code>cx</code></td>
      <td><code><a href="/en-US/docs/SpiderMonkey/JSAPI_Reference/JSRuntime" title="JSRuntime">JSContext</a> *</code></td>
      <td>The context. {{ Jsapi-requires-request() }}</td>
    </tr>
    <tr>
      <td><code>obj</code></td>
      <td><code>JSObject *</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>name</code></td>
      <td><code>const char *</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>def</code></td>
      <td><code>jsval</code></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><code>vp</code></td>
      <td><code>jsval</code></td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>

<h2 id="Description" name="Description">Description</h2>
<p>{{todo("Please provide a description.")}}</p>

<h2 id="See_also" name="See_also">See also</h2>
<ul>
<li>{{todo}}</li>
</ul>
Revert to this revision