1
0
Fork 0

fixed some compiler & jslint warnings

This commit is contained in:
Jan Steemann 2013-05-03 11:09:45 +02:00
parent 74cd7fc9ef
commit eef611b1da
7 changed files with 25 additions and 24 deletions

View File

@ -185,5 +185,5 @@ var Buffer = require("buffer").Buffer;
// Local Variables:
// mode: outline-minor
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
// End:

View File

@ -71,7 +71,8 @@ jslint:
--log.level error \
--server.password "" \
--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; \
done

View File

@ -185,5 +185,5 @@ var Buffer = require("buffer").Buffer;
// Local Variables:
// mode: outline-minor
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
// End:

View File

@ -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
////////////////////////////////////////////////////////////////////////////////
@ -126,24 +144,6 @@ var stringifyFunction = function (code, name) {
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;
};
////////////////////////////////////////////////////////////////////////////////
/// @}
////////////////////////////////////////////////////////////////////////////////

View File

@ -47,5 +47,5 @@ var Buffer = require("buffer").Buffer;
// Local Variables:
// mode: outline-minor
// outline-regexp: "/// @brief\\|/// @addtogroup\\|/// @page\\|// --SECTION--\\|/// @\\}\\|/\\*jslint"
// outline-regexp: "\\(/// @brief\\|/// @addtogroup\\|// --SECTION--\\|/// @page\\|/// @\\}\\)"
// End:

View File

@ -356,7 +356,7 @@
});
// create a unique index on collection attribute in _aal
addTask("createFisbowlIndex",
addTask("createFishbowlIndex",
"create indexes on collection attribute in _fishbowl collection",
function () {
var fishbowl = getCollection("_fishbowl");

View File

@ -112,7 +112,7 @@ class V8Wrapper {
// 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]
_handle.Dispose();
_handle.Dispose(_isolate);
_handle.Clear();