Index: src/ConsoleJsObject.cpp |
=================================================================== |
--- a/src/ConsoleJsObject.cpp |
+++ b/src/ConsoleJsObject.cpp |
@@ -12,17 +12,18 @@ namespace |
AdblockPlus::JsEngine& jsEngine = AdblockPlus::JsEngine::FromArguments(arguments); |
const AdblockPlus::JsEngine::Context context(jsEngine); |
AdblockPlus::JsValueList converted = jsEngine.ConvertArguments(arguments); |
std::stringstream message; |
for (size_t i = 0; i < converted.size(); i++) |
message << converted[i]->AsString(); |
- (jsEngine.GetErrorCallback())(message.str()); |
+ AdblockPlus::ErrorCallbackPtr callback = jsEngine.GetErrorCallback(); |
+ (*callback)(message.str()); |
return v8::Undefined(); |
} |
v8::Handle<v8::Value> TraceCallback(const v8::Arguments& arguments) |
{ |
return v8::Undefined(); |
} |
} |