JS_GetFunctionId

Get a function's name as a JSString.

Syntax

JSString * JS_GetFunctionId(JSFunction *fun);
Name Type Description
fun JSFunction * A JavaScript function.

Description

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.

MXR ID Search for JS_GetFunctionId

Document Tags and Contributors

Contributors to this page: Jorend
Last updated by: Jorend,