Chromium Code Reviews| Index: test/mjsunit/harmony/weakmaps.js |
| diff --git a/test/mjsunit/harmony/weakmaps.js b/test/mjsunit/harmony/weakmaps.js |
| index d98db10df3a91d59f9613833fb205f3b81e5618f..6af99877ba91c631188545cd0456e51ebd9f8ad9 100644 |
| --- a/test/mjsunit/harmony/weakmaps.js |
| +++ b/test/mjsunit/harmony/weakmaps.js |
| @@ -139,6 +139,11 @@ assertTrue(WeakMap.prototype.has instanceof Function) |
| assertTrue(WeakMap.prototype.delete instanceof Function) |
| +// Regression test for issue 1617: The prototype of the WeakMap constructor |
| +// needs to be unique (i.e. different from the one of the Object constructor). |
| +assertFalse(WeakMap.prototype === Object.prototype); |
|
rossberg
2011/08/16 11:14:19
Could you also add a couple of tests checking that
Michael Starzinger
2011/08/16 11:53:19
Done.
|
| + |
| + |
| // Stress Test |
| // There is a proposed stress-test available at the es-discuss mailing list |
| // which cannot be reasonably automated. Check it out by hand if you like: |