mirror of https://gitee.com/bigwinds/arangodb
fix tests with Valgrind
This commit is contained in:
parent
1edd170317
commit
317c7870f0
|
@ -31,6 +31,7 @@
|
|||
var internal = require("internal");
|
||||
var arangodb = require("org/arangodb");
|
||||
var _ = require("underscore");
|
||||
var ShapedJson = internal.ShapedJson;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- AQL test helper functions
|
||||
|
@ -203,7 +204,10 @@ function typeName (value) {
|
|||
if (value === undefined) {
|
||||
return "undefined";
|
||||
}
|
||||
if (value instanceof Array) {
|
||||
if (value instanceof ShapedJson) {
|
||||
return "object";
|
||||
}
|
||||
if (Array.isArray(value)) {
|
||||
return "array";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue