Index: src/JsEngine.cpp |
=================================================================== |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -100,17 +100,17 @@ JsEngine::TimerTask JsEngine::CreateTime |
TimerTask retValue = { shared_from_this(), timerTaskInfoIterator }; |
return retValue; |
} |
void JsEngine::CallTimerTask(TimerTaskInfos::const_iterator timerTaskInfoIterator) |
{ |
const JsContext context(shared_from_this()); |
JsValue callback(shared_from_this(), v8::Local<v8::Value>::New(GetIsolate(), *timerTaskInfoIterator->arguments[0])); |
- JsValueList callbackArgs; |
+ 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); |
timerTaskInfos.erase(timerTaskInfoIterator); |
} |
AdblockPlus::JsEngine::JsEngine(const ScopedV8IsolatePtr& isolate) |