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:
paulc 2016-02-25 17:12:00 +00:00
parent efb00bbe2f
commit 40860a794a
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {