Get a function's name as a JSString.
JSString * JS_GetFunctionId(JSFunction *fun);
| Name | Type | Description |
|---|---|---|
fun |
JSFunction * |
A JavaScript function. |
JS_GetFunctionId returns the name of a function, fun, as a JSString, or NULL if fun is unnamed. The returned string is guaranteed to live as long as fun, so the application often does not need to root the string.
Page last modified 20:00, 5 Sep 2008 by Jorend