Fixed the type of the result of Array.indexOf(), must be number.
git-svn-id: http://voip.null.ro/svn/yate@5812 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
6e84797148
commit
33b29c43ae
|
@ -822,7 +822,7 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
|
|||
}
|
||||
}
|
||||
TelEngine::destruct(op1);
|
||||
ExpEvaluator::pushOne(stack,new ExpOperation(String(index)));
|
||||
ExpEvaluator::pushOne(stack,new ExpOperation((int64_t)index));
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue