summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Set-iterator-gc-3.js
blob: 88c428b0065faa03338169f565c1f54bdabed33c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// GC in nested for-loops is safe.

var x;
for (x of new Set([1]))
    for (x of new Set([1]))
        for (x of new Set([1]))
            for (x of new Set([1]))
                for (x of new Set([1]))
                    for (x of new Set([1]))
                        for (x of new Set([1]))
                            for (x of new Set([1]))
                                for (x of new Set([1]))
                                    for (x of new Set([1]))
                                        for (x of new Set([1]))
                                            for (x of new Set([1]))
                                                for (x of new Set([1]))
                                                    for (x of new Set([1]))
                                                        for (x of new Set([1]))
                                                            for (x of new Set([1]))
                                                                gc();