Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_5 / regress / regress-563210.js
1 /*
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/licenses/publicdomain/
4  * Contributors: Gary Kwong and Nicholas Nethercote
5  */
6
7 if (typeof gczeal != 'undefined' && typeof gc != 'undefined') {
8     try
9     {
10         try {
11             __defineGetter__("x", gc)
12         } catch (e) {}
13         gczeal(1)
14         print(x)(Array(-8))
15     }
16     catch(ex)
17     {
18     }
19 }
20
21 // Reset gczeal.
22 if (typeof gczeal !== 'undefined')
23     gczeal(0)
24
25 reportCompare("no assertion failure", "no assertion failure", "bug 563210");
26
27