Index: src/ConsoleJsObject.cpp |
=================================================================== |
--- a/src/ConsoleJsObject.cpp |
+++ b/src/ConsoleJsObject.cpp |
@@ -24,17 +24,17 @@ |
#include "Utils.h" |
namespace |
{ |
v8::Handle<v8::Value> DoLog(AdblockPlus::LogSystem::LogLevel logLevel, |
const v8::Arguments& arguments) |
{ |
AdblockPlus::JsEnginePtr jsEngine = AdblockPlus::JsEngine::FromArguments(arguments); |
- const AdblockPlus::JsContext context(jsEngine); |
+ const AdblockPlus::JsContext context(*jsEngine); |
AdblockPlus::JsValueList converted = jsEngine->ConvertArguments(arguments); |
std::stringstream message; |
for (size_t i = 0; i < converted.size(); i++) |
{ |
if (i > 0) |
message << " "; |
message << converted[i].AsString(); |
@@ -73,17 +73,17 @@ |
v8::Handle<v8::Value> ErrorCallback(const v8::Arguments& arguments) |
{ |
return DoLog(AdblockPlus::LogSystem::LOG_LEVEL_ERROR, arguments); |
} |
v8::Handle<v8::Value> TraceCallback(const v8::Arguments& arguments) |
{ |
AdblockPlus::JsEnginePtr jsEngine = AdblockPlus::JsEngine::FromArguments(arguments); |
- const AdblockPlus::JsContext context(jsEngine); |
+ const AdblockPlus::JsContext context(*jsEngine); |
AdblockPlus::JsValueList converted = jsEngine->ConvertArguments(arguments); |
std::stringstream traceback; |
v8::Local<v8::StackTrace> frames = v8::StackTrace::CurrentStackTrace(100); |
for (int i = 0, l = frames->GetFrameCount(); i < l; i++) |
{ |
v8::Local<v8::StackFrame> frame = frames->GetFrame(i); |
traceback << (i + 1) << ": "; |