summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-563210.js
blob: d5ba6b2e7eae589872d7e4441cd93fda21feb35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// |reftest| skip-if(Android)
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * Contributors: Gary Kwong and Nicholas Nethercote
 */

if (typeof gczeal != 'undefined' && typeof gc != 'undefined') {
    try
    {
        try {
            __defineGetter__("x", gc)
        } catch (e) {}
        gczeal(1)
        print(x)(Array(-8))
    }
    catch(ex)
    {
    }
}

// Reset gczeal.
if (typeof gczeal !== 'undefined')
    gczeal(0)

reportCompare("no assertion failure", "no assertion failure", "bug 563210");