Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2618

duck typing ObjectId can lead to potential type errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.1.0, bson-1.1.5
    • Affects Version/s: bson-4.0.4
    • Component/s: None
    • None

      A change to support multiple versions of the bson module concurrently led to the use of duck typing the ObjectId type. In this situations we cannot depend strictly on duck-typing, but must ensure values exists and are the correct type before attempting to use them, lest we experience {{TypeError}}s

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: