summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug725000.js
blob: e2b9e54f947f12b39cf6fa5ec8cd3e11f7341a7f (plain)
1
2
3
4
5
6
7
8
9
function f(s) {
    var q;
    for (var i = 0; i < 10000; i++)
        q = ~s;
    return q;
}
var obj = { valueOf: function () { return 3; } }
assertEq(f(obj), -4);