summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug826581.js
blob: bfeade61066397d7ea1b5b3f155433bcbbce5ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Don't crash.

try {
    x = "          ()    ";
    for (var y = 0; y < 19; y++) {
        x += x;
    }
} catch (e) {}

try {
	"".replace(x, "", "gy");
} catch (e) { }