1
0
Fork 0

handle call to sync() with wrong parameter type

This commit is contained in:
Jan Steemann 2015-02-12 00:29:23 +01:00
parent 76da034e27
commit 9ba591e961
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ static void JS_SynchroniseReplication (const v8::FunctionCallbackInfo<v8::Value>
v8::Isolate* isolate = args.GetIsolate();
v8::HandleScope scope(isolate);
if (args.Length() != 1) {
if (args.Length() != 1 || ! args[0]->IsObject()) {
TRI_V8_THROW_EXCEPTION_USAGE("REPLICATION_SYNCHRONISE(<config>)");
}