summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug585310.js
blob: 0f65c9131e30e1beb94036c6e011fc8f293c810e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
gczeal(2)
try {
    (function () {
        for each(l in [0, 0, 0]) {
            print(''.replace(function () {}))
        }
    })()
} catch (e) {}

x = gczeal(2)
try {
    (function () {
        for each(d in [x, x, x]) {
            'a'.replace(/a/, function () {})
        }
    })()
} catch (e) {}

/* Don't assert or segfault. Tests PIC resetting. */