summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/bug1685290.js
blob: df1f2f6070d5e5a37e558b498f3eae46e1abbb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
with ({}) {}

function test(s) {
    "".replace(/x/, s);
}

for (var i = 0; i < 20; i++) {
    test("");
}

try {
    test(new Proxy({}, { get: invalidate }));
} catch {}