Mozilla.com

Table of contents
  1. 1. Syntax
  2. 2. Description
Table of contents
  1. 1. Syntax
  2. 2. Description

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.

LXR ID Search for JS_GetFunctionId

Page last modified 20:00, 5 Sep 2008 by Jorend

Files (0)