chad3814 / node-hashtable

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

'Put' aborts program with no error when the key has already been inserted #30

Open miparnisari opened 7 years ago

miparnisari commented 7 years ago

I'm on Windows 10 here and hashtable v 2.0.2. The issue I have is that when I try to insert the same key with the same value twice in a row, my program ends with no error whatsoever.

var HashTable = require('hashtable');
var nums = new HashTable();
nums.put(1, true);
nums.put(1, true);
console.log('zzz'); //never prints this
313364973 commented 7 years ago

I ment this too,but it works on mac os

jekaspekas commented 7 years ago

I have same problem on Windows 8.1 x64, node 6.10.0 and hashtable v 2.0.2. At linux all OK

sam0x17 commented 7 years ago

I can confirm this issue as well on Windows 10 -- a segfault occurs. Additionally, I also get a segfault when I do .clear(). Would really appreciate a fix @chad3814

achallett commented 7 years ago

Has anyone solved this issue? We have the issue on Windows 7, Node 4.4.7 and hashtable 2.0.2. @chad3814

sam0x17 commented 7 years ago

as always, a fix would still be greatly appreciated @chad3814 . If another few months go by I will attempt a fix myself.