rbt: always return node for insert.

This commit is contained in:
Christopher Jeffrey 2017-03-05 01:23:46 -08:00
parent fce0126c13
commit ef92070a28
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;