Index: src/ConsoleJsObject.cpp |
=================================================================== |
--- a/src/ConsoleJsObject.cpp |
+++ b/src/ConsoleJsObject.cpp |
@@ -102,16 +102,16 @@ |
(*callback)(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, traceback.str(), ""); |
return v8::Undefined(); |
} |
} |
AdblockPlus::JsValue& AdblockPlus::ConsoleJsObject::Setup( |
AdblockPlus::JsEngine& jsEngine, AdblockPlus::JsValue& obj) |
{ |
- obj.SetProperty("log", *jsEngine.NewCallback(::LogCallback)); |
- obj.SetProperty("debug", *jsEngine.NewCallback(::DebugCallback)); |
- obj.SetProperty("info", *jsEngine.NewCallback(::InfoCallback)); |
- obj.SetProperty("warn", *jsEngine.NewCallback(::WarnCallback)); |
- obj.SetProperty("error", *jsEngine.NewCallback(::ErrorCallback)); |
- obj.SetProperty("trace", *jsEngine.NewCallback(::TraceCallback)); |
+ obj.SetProperty("log", jsEngine.NewCallback(::LogCallback)); |
+ obj.SetProperty("debug", jsEngine.NewCallback(::DebugCallback)); |
+ obj.SetProperty("info", jsEngine.NewCallback(::InfoCallback)); |
+ obj.SetProperty("warn", jsEngine.NewCallback(::WarnCallback)); |
+ obj.SetProperty("error", jsEngine.NewCallback(::ErrorCallback)); |
+ obj.SetProperty("trace", jsEngine.NewCallback(::TraceCallback)); |
return obj; |
} |