mongodb/node-mongodb-native — pull request #1142 by eknkc (2014-02-04 19:29:35+00:00)
Title: Check ReadPreference object on ReplSet.canRead

`ReplSet.prototype.canRead` can be called with a `ReadPreference` object instance (for example: https://github.com/mongodb/node-mongodb-native/blob/1.4/lib/mongodb/db.js#L1745)

This ensures that the object is checked correctly.