| Index: gin/test/expect.js
|
| diff --git a/gin/test/expect.js b/gin/test/expect.js
|
| index b5e0f216e7890e73c96f09c9033274f0c23879f9..597b5b1d5e32bb456109f10cea141fb480451b93 100644
|
| --- a/gin/test/expect.js
|
| +++ b/gin/test/expect.js
|
| @@ -82,7 +82,7 @@ define(function() {
|
| aStack.push(a);
|
| bStack.push(b);
|
| var size = 0, result = true;
|
| - // Recursively compare objects and arrays.
|
| + // Recursively compare Maps, objects and arrays.
|
| if (className == '[object Array]' || isArrayBufferClass(className)) {
|
| // Compare array lengths to determine if a deep comparison is necessary.
|
| size = a.length;
|
| @@ -94,6 +94,16 @@ define(function() {
|
| break;
|
| }
|
| }
|
| + } else if (className == '[object Map]') {
|
| + result = a.size == b.size;
|
| + if (result) {
|
| + var entries = a.entries();
|
| + for (var e = entries.next(); result && !e.done; e = entries.next()) {
|
| + var key = e.value[0];
|
| + var value = e.value[1];
|
| + result = b.has(key) && eq(value, b.get(key), aStack, bStack);
|
| + }
|
| + }
|
| } else {
|
| // Deep compare objects.
|
| for (var key in a) {
|
|
|