diff options
Diffstat (limited to 'src/mongo/shell/types.js')
-rw-r--r-- | src/mongo/shell/types.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/types.js b/src/mongo/shell/types.js index 6a0f78dad6a..c06601f9161 100644 --- a/src/mongo/shell/types.js +++ b/src/mongo/shell/types.js @@ -44,7 +44,7 @@ Date.prototype.tojson = function() { this.getTime(); } catch (e) { if (e instanceof TypeError && - e.message.includes("getTime method called on incompatible Object")) { + e.message.includes("Date.prototype.getTime called on incompatible")) { return new Date(NaN).tojson(); } throw e; |