mirror of https://gitee.com/bigwinds/arangodb
Workaround for internal.sprintf not handling dates properly.
This commit is contained in:
parent
3b48230976
commit
efe7dba4c1
|
@ -118,6 +118,9 @@
|
|||
else if (arg === null) {
|
||||
arg = "null";
|
||||
}
|
||||
else if (arg instanceof Date || arg instanceof RegExp) {
|
||||
arg = String(arg);
|
||||
}
|
||||
else if (Object.prototype.isPrototypeOf(arg) || Array.isArray(arg)) {
|
||||
arg = inspect(arg, {prettyPrint: false});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue