Added some tests for JS implementation of HashMap

Fixed JS implementation of HashMap#putAll
This commit is contained in:
Zalim Bashorov
2013-03-11 15:46:51 +04:00
parent 7f583cc798
commit 322d35ac2f
2 changed files with 36 additions and 5 deletions
+2 -2
View File
@@ -339,7 +339,7 @@
};
this.each = function (callback) {
var entries = that.entries(), i = entries.length, entry;
var entries = that._entries(), i = entries.length, entry;
while (i--) {
entry = entries[i];
callback(entry[0], entry[1]);
@@ -348,7 +348,7 @@
this.putAll = function (hashtable, conflictCallback) {
var entries = hashtable.entries();
var entries = hashtable._entries();
var entry, key, value, thisValue, i = entries.length;
var hasConflictCallback = (typeof conflictCallback == FUNCTION);
while (i--) {