prevent infinite loop on circular references.
This commit is contained in:
parent
c3e45a2a53
commit
b26961d68a
@ -136,7 +136,7 @@ function LowlevelUp(file, options) {
|
|||||||
|
|
||||||
// Stay as close to the metal as possible.
|
// Stay as close to the metal as possible.
|
||||||
// We want to make calls to C++ directly.
|
// We want to make calls to C++ directly.
|
||||||
while (this.db.db && this.db.db.put)
|
while (this.db.db && this.db.db.put && this.db.db !== this.db)
|
||||||
this.db = this.db.db;
|
this.db = this.db.db;
|
||||||
|
|
||||||
this.binding = this.db;
|
this.binding = this.db;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user