Add the "name" property to functions.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6480 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
b9cb5d4f0b
commit
76c0d7ed08
|
@ -3606,6 +3606,8 @@ JsFunction::JsFunction(ScriptMutex* mtx, const char* name, unsigned int line, Ob
|
|||
}
|
||||
unsigned int argc = m_formal.count();
|
||||
static_cast<ExpOperation&>(m_func) = argc;
|
||||
if (name)
|
||||
params().addParam("name",name);
|
||||
params().addParam("length",String(argc));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue