-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.0.27
-
Component/s: None
-
Labels:
-
Empty show more show less
Since https://github.com/mongodb/node-mongodb-native/commit/ccbfb29bd0f2eda5f24823931c65d5627de84857#diff-14b597bc6604e1b7ec69ae786619e979R26 internal cursor state is now in `Cursor.s`, but `maxTimeMS` is not read from `this.s` (in fact not even from `this`: the previous version was probably broken too), but from undefined local variable `maxTimeMS`.
Also, there is a useless `var maxTimeMS = null;` in the Cursor constructor: https://github.com/mongodb/node-mongodb-native/blob/e1b4f2e3528a3886ea4da28309c9c4893f2abb3d/lib/cursor.js#L86