summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1708839.js
blob: 93d5c5622efcb1cf3261b184c8ac45f4489effa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function f(a) {
    let m = new Uint32Array([-1]);
    let h = m[0];
    let r = m[0];
    if (a) {
        h = undefined;
        r = 0xff;
    }
    return h > r;
};

assertEq(f(false), false);
for (let i = 0; i < 100; ++i) {
    f(true);
}
assertEq(f(false), false);