diff --git a/iterator.js b/iterator.js index 202c6d42..f3f5c1e3 100644 --- a/iterator.js +++ b/iterator.js @@ -3,7 +3,7 @@ const util = require('util') function Iterator (db, options) { - AbstractIterator.call(this, options) + AbstractIterator.call(this, db) this.binding = db.binding.iterator(options) this.cache = null @@ -51,4 +51,4 @@ Iterator.prototype._end = function (callback) { } -module.exports = Iterator \ No newline at end of file +module.exports = Iterator