mirror of https://gitee.com/bigwinds/arangodb
fixed some compiler & jslint warnings
This commit is contained in:
parent
74cd7fc9ef
commit
eef611b1da
|
@ -185,5 +185,5 @@ var Buffer = require("buffer").Buffer;
|
||||||
|
|
||||||
// Local Variables:
|
// Local Variables:
|
||||||
// mode: outline-minor
|
// mode: outline-minor
|
||||||
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
|
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
|
||||||
// End:
|
// End:
|
||||||
|
|
|
@ -71,7 +71,8 @@ jslint:
|
||||||
--log.level error \
|
--log.level error \
|
||||||
--server.password "" \
|
--server.password "" \
|
||||||
--javascript.startup-directory @srcdir@/js \
|
--javascript.startup-directory @srcdir@/js \
|
||||||
--javascript.modules-path "@srcdir@/js/client/modules;@srcdir@/js/common/modules" \
|
--javascript.modules-path "@srcdir@/js/client/modules;@srcdir@/js/common/modules;@srcdir@/js/node" \
|
||||||
|
--javascript.package-path "@srcdir@/js/npm;@srcdir@/js/common/test-data/modules" \
|
||||||
--jslint $$file; \
|
--jslint $$file; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -185,5 +185,5 @@ var Buffer = require("buffer").Buffer;
|
||||||
|
|
||||||
// Local Variables:
|
// Local Variables:
|
||||||
// mode: outline-minor
|
// mode: outline-minor
|
||||||
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
|
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
|
||||||
// End:
|
// End:
|
||||||
|
|
|
@ -47,6 +47,24 @@ var ArangoError = arangodb.ArangoError;
|
||||||
/// @{
|
/// @{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// @brief return the _aqlfunctions collection
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
var getStorage = function () {
|
||||||
|
var functions = db._collection("_aqlfunctions");
|
||||||
|
|
||||||
|
if (functions === null) {
|
||||||
|
var err = new ArangoError();
|
||||||
|
err.errorNum = arangodb.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code;
|
||||||
|
err.errorMessage = "collection '_aqlfunctions' not found";
|
||||||
|
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
|
return functions;
|
||||||
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief apply a prefix filter on the functions
|
/// @brief apply a prefix filter on the functions
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -126,24 +144,6 @@ var stringifyFunction = function (code, name) {
|
||||||
throw err;
|
throw err;
|
||||||
};
|
};
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
/// @brief return the _aqlfunctions collection
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
var getStorage = function () {
|
|
||||||
var functions = db._collection("_aqlfunctions");
|
|
||||||
|
|
||||||
if (functions === null) {
|
|
||||||
var err = new ArangoError();
|
|
||||||
err.errorNum = arangodb.errors.ERROR_ARANGO_COLLECTION_NOT_FOUND.code;
|
|
||||||
err.errorMessage = "collection '_aqlfunctions' not found";
|
|
||||||
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
|
|
||||||
return functions;
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @}
|
/// @}
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -47,5 +47,5 @@ var Buffer = require("buffer").Buffer;
|
||||||
|
|
||||||
// Local Variables:
|
// Local Variables:
|
||||||
// mode: outline-minor
|
// mode: outline-minor
|
||||||
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
|
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
|
||||||
// End:
|
// End:
|
||||||
|
|
|
@ -356,7 +356,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// create a unique index on collection attribute in _aal
|
// create a unique index on collection attribute in _aal
|
||||||
addTask("createFisbowlIndex",
|
addTask("createFishbowlIndex",
|
||||||
"create indexes on collection attribute in _fishbowl collection",
|
"create indexes on collection attribute in _fishbowl collection",
|
||||||
function () {
|
function () {
|
||||||
var fishbowl = getCollection("_fishbowl");
|
var fishbowl = getCollection("_fishbowl");
|
||||||
|
|
|
@ -112,7 +112,7 @@ class V8Wrapper {
|
||||||
|
|
||||||
// TODO causes this warning on compilation:
|
// TODO causes this warning on compilation:
|
||||||
// ‘void v8::Persistent<T>::Dispose() [with T = v8::Object]’ is deprecated (declared at ./3rdParty/V8/include/v8.h:4406) [-Wdeprecated-declarations]
|
// ‘void v8::Persistent<T>::Dispose() [with T = v8::Object]’ is deprecated (declared at ./3rdParty/V8/include/v8.h:4406) [-Wdeprecated-declarations]
|
||||||
_handle.Dispose();
|
_handle.Dispose(_isolate);
|
||||||
|
|
||||||
_handle.Clear();
|
_handle.Clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue