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

Unified Diff: src/WebRequestJsObject.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 | « src/JsEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/WebRequestJsObject.cpp
===================================================================
--- a/src/WebRequestJsObject.cpp
+++ b/src/WebRequestJsObject.cpp
@@ -113,11 +113,11 @@
thread->Start();
return v8::Undefined();
}
}
AdblockPlus::JsValue& AdblockPlus::WebRequestJsObject::Setup(
AdblockPlus::JsEngine& jsEngine, AdblockPlus::JsValue& obj)
{
- obj.SetProperty("GET", *jsEngine.NewCallback(::GETCallback));
+ obj.SetProperty("GET", jsEngine.NewCallback(::GETCallback));
return obj;
}
« no previous file with comments | « src/JsEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld