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:
paulc 2021-04-16 13:03:57 +00:00
parent b9cb5d4f0b
commit 76c0d7ed08
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}