1
0
Fork 0

fix compile errors

This commit is contained in:
jsteemann 2016-12-27 20:00:25 +01:00
parent dea26c02a9
commit c44a5c38a8
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class V8Completer : public Completer {
v8::Handle<v8::Value> args[] = {}; v8::Handle<v8::Value> args[] = {};
try { try {
v8::Handle<v8::Value> cpls = func->Call(current, 0, &args); v8::Handle<v8::Value> cpls = func->Call(current, 0, args);
if (cpls->IsArray()) { if (cpls->IsArray()) {
properties = v8::Handle<v8::Array>::Cast(cpls); properties = v8::Handle<v8::Array>::Cast(cpls);

View File

@ -410,7 +410,7 @@ static int V8ToVPack(BuilderContext& context,
v8::Handle<v8::Function>::Cast(func); v8::Handle<v8::Function>::Cast(func);
v8::Handle<v8::Value> args[] = {}; v8::Handle<v8::Value> args[] = {};
v8::Handle<v8::Value> converted = toJson->Call(o, 0, &args); v8::Handle<v8::Value> converted = toJson->Call(o, 0, args);
if (!converted.IsEmpty()) { if (!converted.IsEmpty()) {
// return whatever toJSON returned // return whatever toJSON returned