Index: test/mjsunit/es6/weak_collections.js |
diff --git a/test/mjsunit/es6/weak_collections.js b/test/mjsunit/es6/weak_collections.js |
index 74235e7d2c7a9c4210c5a1b61f167afb7982fdfd..b3ebd5d4631e8377150720461e7bcb11519cf7a3 100644 |
--- a/test/mjsunit/es6/weak_collections.js |
+++ b/test/mjsunit/es6/weak_collections.js |
@@ -68,7 +68,7 @@ TestInvalidCalls(new WeakMap); |
// Test expected behavior for WeakSets |
function TestSet(set, key) { |
assertFalse(set.has(key)); |
- assertSame(undefined, set.add(key)); |
+ assertSame(set, set.add(key)); |
assertTrue(set.has(key)); |
assertTrue(set.delete(key)); |
assertFalse(set.has(key)); |
@@ -92,7 +92,7 @@ TestSet(new WeakSet, new Object); |
// Test expected mapping behavior for WeakMaps |
function TestMapping(map, key, value) { |
- assertSame(undefined, map.set(key, value)); |
+ assertSame(map, map.set(key, value)); |
assertSame(value, map.get(key)); |
} |
function TestMapBehavior1(m) { |