Closed gregorleban closed 6 years ago
Calling the put() method twice using the same key like below crashes the node process:
x = new HashTable() x.put("x", "y") x.put("x", "y")
If calling put() multiple times with the same key is not allowed I suggest you rather throw a regular exception that can be caught in node.
Simply updating the existing key could also be a valid solution.
Calling the put() method twice using the same key like below crashes the node process:
x = new HashTable() x.put("x", "y") x.put("x", "y")
If calling put() multiple times with the same key is not allowed I suggest you rather throw a regular exception that can be caught in node.
Simply updating the existing key could also be a valid solution.