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

v8 and spidermonkey handle Timestamps differently

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.5.0
    • None
    • Shell
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: