mirror of https://gitee.com/bigwinds/arangodb
deleted _path
This commit is contained in:
parent
474340a069
commit
3cc5843247
|
@ -5747,10 +5747,6 @@ static v8::Handle<v8::Object> WrapVocBase (TRI_vocbase_t const* database) {
|
|||
WRP_VOCBASE_TYPE,
|
||||
const_cast<TRI_vocbase_t*>(database));
|
||||
|
||||
if (! result.IsEmpty()) {
|
||||
result->Set(TRI_V8_SYMBOL("_path"), v8::String::New(database->_path), v8::ReadOnly);
|
||||
}
|
||||
|
||||
return scope.Close(result);
|
||||
}
|
||||
|
||||
|
@ -6446,11 +6442,7 @@ static v8::Handle<v8::Value> JS_UseVocbase (v8::Arguments const& argv) {
|
|||
TRI_v8_global_t* v8g = (TRI_v8_global_t*) v8::Isolate::GetCurrent()->GetData();
|
||||
v8g->_vocbase = vocbase;
|
||||
|
||||
v8::Handle<v8::Object> result = WrapClass(v8g->VocbaseTempl,
|
||||
WRP_VOCBASE_TYPE,
|
||||
const_cast<TRI_vocbase_t*>(vocbase));
|
||||
|
||||
return scope.Close(result);
|
||||
return scope.Close(WrapVocBase(vocbase));
|
||||
}
|
||||
|
||||
return scope.Close(v8::Boolean::New(false));
|
||||
|
|
Loading…
Reference in New Issue