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; |
} |