Index: src/GlobalJsObject.cpp |
=================================================================== |
--- a/src/GlobalJsObject.cpp |
+++ b/src/GlobalJsObject.cpp |
@@ -50,8 +50,8 @@ |
Sleep(delay); |
const v8::Locker locker(isolate); |
const v8::HandleScope handleScope; |
- v8::Handle<v8::Value> argv = functionArguments.size() > 0 ? functionArguments[0] : v8::Handle<v8::Value>(); |
- function->Call(function, functionArguments.size(), &argv); |
+ v8::Handle<v8::Value> *argv = functionArguments.empty() ? 0 : &(functionArguments.front()); |
Felix Dahlke
2013/04/09 08:11:15
Declaration type should be "v8::Handle<v8::Value>*
|
+ function->Call(function, functionArguments.size(), argv); |
delete this; |
} |