Seems like v8 doesn't pass Timestamp objects from commands to the shell - instead is uses the object representation (
{ t : #, i : # })?
Basically the test was running a comparison of:
Timestamp( 1000, 2 ) + "" == admin.runCommand(
{ getShardVersion : coll + "" }).version + ""
In spidermonkey, both are timestamps. In v8, the second is an object, and the comparison fails. If nothing else, we should be consistent between both javascript engines.
- is duplicated by
-
SERVER-9178 Timestamp does not round trip correctly in V8 Javascript shell
- Closed
-
SERVER-9732 Timestamp object is not displayed in a roundtrip-able way in the shell
- Closed
- is related to
-
SERVER-9175 Add more round trip jstests for javascript shell
- Closed