Fixed the returned type of charCodeAt(), must be integer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6098 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
efb00bbe2f
commit
40860a794a
|
@ -692,7 +692,7 @@ bool JsContext::runStringFunction(GenObject* obj, const String& name, ObjList& s
|
|||
if (op && op->isInteger())
|
||||
idx = (int)op->number();
|
||||
}
|
||||
ExpEvaluator::pushOne(stack,new ExpOperation(String((uint32_t)str->at(idx))));
|
||||
ExpEvaluator::pushOne(stack,new ExpOperation((int64_t)(uint8_t)str->at(idx)));
|
||||
return true;
|
||||
}
|
||||
if (name == YSTRING("indexOf")) {
|
||||
|
|
Loading…
Reference in New Issue