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

Min/MaxKey on V8 are not comparable

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.2.0-rc1
    • None
    • JavaScript
    • None
    • Fully Compatible
    • ALL
    • Platform A (10/09/15), Build B (10/30/15)

    Description

      Cannot be singled out, or tested:

      //can't use typeof
      >typeof MinKey
      object
       
      //not === comparable (should make singleton?)
      > db.max.findOne()._id
      { "$maxKey" : 1 }
      > db.max.findOne()._id === MaxKey
      // no instanceof support...
      > "a" instanceof MinKey
      Fri Jan 18 18:07:21.863 javascript execution failed (shell):1 TypeError: Expecting a function in instanceof check, but got a
      "a" instanceof MinKey
      

      Attachments

        Activity

          People

            jonathan.reams@mongodb.com Jonathan Reams
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: