Skip to content

Commit

Permalink
Merge pull request #169 from Level/fix/iterator-gc
Browse files Browse the repository at this point in the history
pass db to abstractIterator so gc keeps it
  • Loading branch information
ralphtheninja committed May 5, 2015
2 parents b2bd73e + 9064099 commit 88c5c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -51,4 +51,4 @@ Iterator.prototype._end = function (callback) {
}


module.exports = Iterator
module.exports = Iterator

0 comments on commit 88c5c97

Please sign in to comment.