Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -96,17 +96,17 @@ JsEngine::TimerTask JsEngine::CreateTime |
timerTaskInfoIterator->delay = arguments[1]->IntegerValue(); |
for (int i = 0; i < arguments.Length(); i++) |
timerTaskInfoIterator->arguments.emplace_back(new v8::Persistent<v8::Value>(GetIsolate(), arguments[i])); |
TimerTask retValue = { shared_from_this(), timerTaskInfoIterator }; |
return retValue; |
} |
-void JsEngine::CallTimerTask(TimerTaskInfos::const_iterator timerTaskInfoIterator) |
+void JsEngine::CallTimerTask(TimerTaskInfos::iterator timerTaskInfoIterator) |
{ |
const JsContext context(shared_from_this()); |
JsValue callback(shared_from_this(), v8::Local<v8::Value>::New(GetIsolate(), *timerTaskInfoIterator->arguments[0])); |
JsConstValueList callbackArgs; |
for (int i = 2; i < timerTaskInfoIterator->arguments.size(); i++) |
callbackArgs.emplace_back(new JsValue(shared_from_this(), |
v8::Local<v8::Value>::New(GetIsolate(), *timerTaskInfoIterator->arguments[i]))); |
callback.Call(callbackArgs); |