Chromium Code Reviews| Index: test/mjsunit/harmony/weakmaps.js |
| diff --git a/test/mjsunit/harmony/weakmaps.js b/test/mjsunit/harmony/weakmaps.js |
| index 77d379602fc2a19242ca3ed12794fe7c1d8ad912..569868b6ad60d357a2dd510f27a15fb78888ca4e 100644 |
| --- a/test/mjsunit/harmony/weakmaps.js |
| +++ b/test/mjsunit/harmony/weakmaps.js |
| @@ -112,3 +112,14 @@ var m = new WeakMap; |
| assertTrue(m instanceof WeakMap); |
| assertTrue(WeakMap.prototype.set instanceof Function) |
| assertTrue(WeakMap.prototype.get instanceof Function) |
| + |
| + |
| +// Stress Test |
| +// https://mail.mozilla.org/pipermail/es-discuss/2011-May/014096.html |
| +/*var wm = new WeakMap; |
|
Vyacheslav Egorov (Chromium)
2011/08/03 08:50:20
I don't think there is any reason to commit commen
Michael Starzinger
2011/08/03 12:41:44
Done.
|
| +var key = {}, value = {}; |
| +while(true) { |
| + wm.set(key, value); |
| + key = value; |
| + value = {}; |
| +}*/ |