Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/ConsoleJsObject.cpp

Issue 29416603: Issue 5034 - Part 2: Have NewCallback() return a plain JsValue (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Created April 18, 2017, 9:18 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld