summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testModuloWithNegative2.js
blob: dfd1e3deb86d2762aa31241bcaa0a34687e50e39 (plain)
1
2
3
4
5
6
7
function f(v, e) {
    for (var i = 0; i < 9; i++)
        v %= e;
    return v;
}
f(0, 1);
assertEq(f(-2, 2), -0);