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

Min/MaxKey on V8 are not comparable

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

      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
      

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

              Created:
              Updated:
              Resolved: