Resolve to undefined members of inline objects or arrays that have an undefined right hand variable.

git-svn-id: http://voip.null.ro/svn/yate@5974 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2015-05-19 11:56:31 +00:00
parent aa0a6b6a06
commit 0ad3b6042b
1 changed files with 6 additions and 2 deletions

View File

@ -2527,11 +2527,15 @@ void JsCode::resolveObjectParams(JsObject* object, ObjList& stack, GenObject* co
continue;
String name = *op;
JsObject* jsobj = YOBJECT(JsObject,ctxt->resolve(stack,name,context));
if (!jsobj)
if (!jsobj) {
object->params().setParam(new ExpWrapper(0,op->name()));
continue;
}
NamedString* ns = jsobj->getField(stack,name,context);
if (!ns)
if (!ns) {
object->params().setParam(new ExpWrapper(0,op->name()));
continue;
}
ExpOperation* objOper = YOBJECT(ExpOperation,ns);
NamedString* temp = 0;
if (objOper)