Bug 524743 - Shape regeneration still does not touch most empty scopes. r=brendan.
[mozilla-central.git] / js / src / tests / js1_8_1 / regress / regress-524743.js
blob38d11838aa0ec5920b19c04fe6b3e30b1bfb4605
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3 if (typeof gczeal != 'undefined')
4     gczeal(2);
5 if (typeof gc != 'undefined') {
6     for (var i = 0; i < 10; i++) {
7         var obj = {};
8         for (var j = 0; j < 5; j++) {
9             obj[Math.floor(Math.random() * 5)] = 0;
10             gc();
11         }
12     }
14 reportCompare("no assertion failure", "no assertion failure", "bug 524743");