v8 and spidermonkey handle Timestamps differently

XMLWordPrintableJSON

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

      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:
              Shaun Verch (Inactive)
              Reporter:
              Greg Studer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: