зеркало из https://github.com/mozilla/gecko-dev.git
Bug 433529: Part 6 - Add JS_GetFunctionDisplayId as a jsapi function for a JSFunction's displayAtom. r=jimb
This commit is contained in:
Родитель
a4ae25b2dc
Коммит
57f5df240d
|
@ -4924,6 +4924,12 @@ JS_GetFunctionId(JSFunction *fun)
|
|||
return fun->atom();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSString *)
|
||||
JS_GetFunctionDisplayId(JSFunction *fun)
|
||||
{
|
||||
return fun->displayAtom();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(unsigned)
|
||||
JS_GetFunctionFlags(JSFunction *fun)
|
||||
{
|
||||
|
|
|
@ -4974,6 +4974,16 @@ JS_GetFunctionObject(JSFunction *fun);
|
|||
extern JS_PUBLIC_API(JSString *)
|
||||
JS_GetFunctionId(JSFunction *fun);
|
||||
|
||||
/*
|
||||
* Return a function's display name. This is the defined name if one was given
|
||||
* where the function was defined, or it could be an inferred name by the JS
|
||||
* engine in the case that the function was defined to be anonymous. This can
|
||||
* still return NULL if a useful display name could not be inferred. The same
|
||||
* restrictions on rooting as those in JS_GetFunctionId apply.
|
||||
*/
|
||||
extern JS_PUBLIC_API(JSString *)
|
||||
JS_GetFunctionDisplayId(JSFunction *fun);
|
||||
|
||||
/*
|
||||
* Return JSFUN_* flags for fun.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче