FixedArray.join() and Array.pop() implementations. Replaced incorrect use of toString().

git-svn-id: http://yate.null.ro/svn/yate/trunk@5380 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
oana 2013-01-21 11:03:06 +00:00
parent 82f7d02567
commit f7a0ef30ae
1 changed files with 3 additions and 2 deletions

View File

@ -526,7 +526,7 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
else {
NamedPointer* np = (NamedPointer*)last->getObject(YSTRING("NamedPointer"));
if (!np)
ExpEvaluator::pushOne(stack,new ExpOperation(last->toString()));
ExpEvaluator::pushOne(stack,new ExpOperation(*last));
else
ExpEvaluator::pushOne(stack,new ExpWrapper(np->userData(),0));
}
@ -592,7 +592,8 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
String separator = ",";
if (oper.number()) {
ExpOperation* op = popValue(stack,context);
separator = op->toString();
separator = *op;
TelEngine::destruct(op);
}
String result;
for (long int i = 0; i < length(); i++)