Index: test/mjsunit/harmony/weakmaps.js |
diff --git a/test/mjsunit/harmony/weakmaps.js b/test/mjsunit/harmony/weakmaps.js |
index e43f9167e641b72ca4e440d211fd85bee367e9a0..7b5dcaf0c1d8b03bb6dafd9f7e064f8143056588 100644 |
--- a/test/mjsunit/harmony/weakmaps.js |
+++ b/test/mjsunit/harmony/weakmaps.js |
@@ -137,7 +137,11 @@ assertTrue(WeakMap.prototype.set instanceof Function) |
assertTrue(WeakMap.prototype.get instanceof Function) |
assertTrue(WeakMap.prototype.has instanceof Function) |
assertTrue(WeakMap.prototype.delete instanceof Function) |
+ |
+ |
+// Regression test for WeakMap prototype. |
assertTrue(WeakMap.prototype.constructor === WeakMap) |
+assertTrue(Object.getPrototypeOf(WeakMap.prototype) === Object.prototype) |
// Regression test for issue 1617: The prototype of the WeakMap constructor |