Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
31
Description
Expected:
> Object.extend({}, {d: new Date()}).d
|
ISODate("2022-02-04T18:37:47.961Z")
|
Actual:
> Object.extend({}, {d: new Date()}, true).d
|
uncaught exception: TypeError: this.getTime is not a function :
|
Date.prototype.tojson@src/mongo/shell/types.js:44:9
|
shellPrintHelper@src/mongo/shell/utils.js:682:15
|
@(shell2):1:1
|
I noticed and fixed this on 5.3 while doing SERVER-59163, but I think we should backport it too.
Attachments
Issue Links
- duplicates
-
SERVER-59163 Enable partial indexes on time-series collections
-
- Closed
-
- is related to
-
SERVER-40425 fix Object.extend() for all custom javascript objects
-
- Backlog
-
- related to
-
SERVER-59163 Enable partial indexes on time-series collections
-
- Closed
-