rbt: always return node for insert.
This commit is contained in:
parent
fce0126c13
commit
ef92070a28
@ -78,7 +78,7 @@ RBT.prototype.insert = function insert(key, value) {
|
||||
if (this.unique && cmp === 0) {
|
||||
current.key = key;
|
||||
current.value = value;
|
||||
return;
|
||||
return current;
|
||||
}
|
||||
|
||||
parent = current;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user