I found a bug in the remove function in multidictionary.js.
The description states that if a key is missing, remove should return false.
It actually doesn't make that check, and so calls buckets.remove on an undefined array, which raises an error.
I added a test that triggers this behavior, as well as a possible fix, in the pull request.
Hi Mauricio,
I found a bug in the
remove
function inmultidictionary.js
. The description states that if a key is missing,remove
should returnfalse
. It actually doesn't make that check, and so callsbuckets.remove
on anundefined
array, which raises an error.I added a test that triggers this behavior, as well as a possible fix, in the pull request.
Cheers, Théotime