summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1608256.js
blob: 4445a411578ad541a136f8add80b197d15672b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| --no-threads; --baseline-warmup-threshold=1; --ion-full-warmup-threshold=1
function g(obj, v) {
    obj.prop = v;
}
function f() {
    var obj = {prop: 2};
    for (var j = 0; j < 20; j++) {}
    for (var i = 0; i < 100; i++) {
        g(/x/, 1);
        g(obj, false);
    }
}
f();