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

Cursor.count() opts argument masked by var opts = {}

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.28
    • Affects Version/s: 2.0.27
    • Component/s: None
    • Labels:

      Since https://github.com/mongodb/node-mongodb-native/commit/d399f7d49c7953597c4ff7ea30c2e4ae39f5b7fa#diff-14b597bc6604e1b7ec69ae786619e979R157 Cursor.count takes an optional `opts` parameter, but the value is hidden by the local variable `var opts = {};`

      Found with jshint (W004), which could be added to the project to find all these issues.

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            trsystran Thomas Riccardi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: