Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_1 / regress / regress-524743.js
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3
4 if (typeof gczeal != 'undefined' && typeof gc != 'undefined') {
5     try
6     {
7         gczeal(2);
8         var obj = {};
9         for (var i = 0; i < 50; i++) {
10             obj["_" + i] = 0;
11             gc();
12         }
13     }
14     catch(ex)
15     {
16     }
17     gczeal(0);
18 }
19 reportCompare("no assertion failure", "no assertion failure", "bug 524743");