Skip to content

Commit

Permalink
Don't mutate arguments object, which fails in strict mode (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak authored Jun 26, 2020
1 parent 8928189 commit 5513c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leveldown.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SubIterator.prototype._next = function (cb) {
this.iterator.next(function (err, key, value) {
if (err) return cb(err)
if (key) key = key.slice(self.prefix.length)
cb.apply(null, arguments)
cb(err, key, value)
})
}

Expand Down

0 comments on commit 5513c83

Please sign in to comment.