Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6079

v8 and spidermonkey handle Timestamps differently

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.0
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL

      Seems like v8 doesn't pass Timestamp objects from commands to the shell - instead is uses the object representation (

      { t : #, i : # }

      )?

      http://buildbot.mongodb.org:8081/builders/Linux%2064-bit%20v8/builds/3570/steps/test_10/logs/stdio/text

      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.

            Assignee:
            sverch Shaun Verch
            Reporter:
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: