chad3814 / node-hashtable

Native hashtable interface for when V8 objects can't take the heat
MIT License
106 stars 41 forks source link

Fix: Objects not loaded after repeated put #11 #13

Closed liyu1981 closed 9 years ago

liyu1981 commented 10 years ago

v8 Dispose must have done memory critical operation and make the cpp iterator not work as expected. The solution is to properly delete the key-value pair before insert the new one.

chad3814 commented 9 years ago

I pushed your change (with freeing the key as well) in 0.5.3; once again, I'm sorry it took so long