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

Min/MaxKey on V8 are not comparable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc1
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      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

          Issue Links

            Activity

              People

              Assignee:
              jonathan.reams Jonathan Reams
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: