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

Unified Diff: src/FileSystemJsObject.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/ConsoleJsObject.cpp ('k') | src/GlobalJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FileSystemJsObject.cpp
===================================================================
--- a/src/FileSystemJsObject.cpp
+++ b/src/FileSystemJsObject.cpp
@@ -346,16 +346,16 @@
return Utils::ToV8String(isolate, resolved);
}
}
JsValue& FileSystemJsObject::Setup(JsEngine& jsEngine, JsValue& obj)
{
- obj.SetProperty("read", *jsEngine.NewCallback(::ReadCallback));
- obj.SetProperty("write", *jsEngine.NewCallback(::WriteCallback));
- obj.SetProperty("move", *jsEngine.NewCallback(::MoveCallback));
- obj.SetProperty("remove", *jsEngine.NewCallback(::RemoveCallback));
- obj.SetProperty("stat", *jsEngine.NewCallback(::StatCallback));
- obj.SetProperty("resolve", *jsEngine.NewCallback(::ResolveCallback));
+ obj.SetProperty("read", jsEngine.NewCallback(::ReadCallback));
+ obj.SetProperty("write", jsEngine.NewCallback(::WriteCallback));
+ obj.SetProperty("move", jsEngine.NewCallback(::MoveCallback));
+ obj.SetProperty("remove", jsEngine.NewCallback(::RemoveCallback));
+ obj.SetProperty("stat", jsEngine.NewCallback(::StatCallback));
+ obj.SetProperty("resolve", jsEngine.NewCallback(::ResolveCallback));
return obj;
}
« no previous file with comments | « src/ConsoleJsObject.cpp ('k') | src/GlobalJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld