JS_DefineFunctionById

  • Revision slug: SpiderMonkey/JSAPI_Reference/JS_DefineFunctionById
  • Revision title: JS_DefineFunctionById
  • Revision id: 73046
  • Created:
  • Creator: MarkGiffin
  • Is current revision? No
  • Comment page display name changed to 'JS_DefineFunctionById'

Revision Content

Please provide a description for this function.

Syntax

JS_PUBLIC_API(JSFunction *) JS_DefineFunctionById(JSContext *cx, JSObject *obj,
    jsid id, JSNative call, uintN nargs, uintN attrs);
Name Type Description
cx JSContext * The context. {{ Jsapi-requires-request() }}
obj JSObject *
id jsid  
call JSNative  
nargs uintN  
attrs uintN  

Description

Please provide a description. 

See Also

Please provide a description. 

Revision Source

<p>Please provide a description for this function.</p>
<h2 name="Syntax">Syntax</h2>
<pre class="eval">JS_PUBLIC_API(JSFunction *) <strong>JS_DefineFunctionById</strong>(JSContext *cx, JSObject *obj,
    jsid id, JSNative call, uintN nargs, uintN attrs);
</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/SpiderMonkey/JSAPI_Reference/JSRuntime" title="en/JSRuntime">JSContext</a> *</code></td> <td>The context. {{ Jsapi-requires-request() }}</td> </tr> <tr> <td><code>obj</code></td> <td><code>JSObject *</code></td> </tr> <tr> <td><code>id</code></td> <td><code>jsid</code></td> <td> </td> </tr> <tr> <td><code>call</code></td> <td><code>JSNative</code></td> <td> </td> </tr> <tr> <td><code>nargs</code></td> <td><code>uintN</code></td> <td> </td> </tr> <tr> <td><code>attrs</code></td> <td><code>uintN</code></td> <td> </td> </tr> </tbody>
</table>
<h2 name="Description">Description</h2>
<p>Please provide a description. </p>
<h2 name="See_Also">See Also</h2>
<p>Please provide a description. </p>
Revert to this revision