summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug723040.js
blob: a7ae7ea1a25b3ed344bf9edc54652801c9566e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function f(x) {
    for (var i=0; i<50; i++) {
        assertEq(x == null, false);
        assertEq(x == undefined, false);
        assertEq(x != null, true);
        assertEq(x != undefined, true);
        assertEq(x === null, false);
        assertEq(x === undefined, false);
        assertEq(x !== null, true);
        assertEq(x !== undefined, true);
        assertEq(x < null, false);
        assertEq(x >= null, true);
    }
}
f(10);
f(0);