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

Unified Diff: src/GlobalJsObject.cpp

Issue 10169005: Windows specific changes. All tests passing on Windows. (Closed)
Patch Set: Created April 9, 2013, 2:22 a.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
« include/AdblockPlus/FilterEngine.h ('K') | « include/AdblockPlus/FilterEngine.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/GlobalJsObject.cpp
===================================================================
--- a/src/GlobalJsObject.cpp
+++ b/src/GlobalJsObject.cpp
@@ -50,7 +50,8 @@
Sleep(delay);
const v8::Locker locker(isolate);
const v8::HandleScope handleScope;
- function->Call(function, functionArguments.size(), &functionArguments[0]);
+ v8::Handle<v8::Value> argv = functionArguments.size() > 0 ? functionArguments[0] : v8::Handle<v8::Value>();
+ function->Call(function, functionArguments.size(), &argv);
Wladimir Palant 2013/04/09 05:47:07 No, this isn't right. You *copy* the first argumen
Oleksandr 2013/04/09 05:54:21 Ah. You're right. My bad. It's not that I *wante
Felix Dahlke 2013/04/09 08:18:06 Ah, just saw the original change here, didn't show
delete this;
}
« include/AdblockPlus/FilterEngine.h ('K') | « include/AdblockPlus/FilterEngine.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld