summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1669597.js
blob: c4110c581f7767f372553cec6305f3574f33824b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| --fast-warmup
var str = '';
function g(x) {
    with(this) {} // Don't inline.
    return x;
}
function f() {
    var x = 0;
    for (var i = 0; i < 100; i++) {
        x += +g(+str);
    }
    return x;
}
assertEq(f(), 0);