aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-2871.js
blob: 43c8352b2828e13928367526134f509b8e16a3ca (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
comparison_with_undefined: {
    options = {
        comparisons: true,
    }
    input: {
        a == undefined;
        a != undefined;
        a === undefined;
        a !== undefined;

        undefined == a;
        undefined != a;
        undefined === a;
        undefined !== a;

        void 0 == a;
        void 0 != a;
        void 0 === a;
        void 0 !== a;
    }
    expect: {
        null == a;
        null != a;
        void 0 === a;
        void 0 !== a;

        null == a;
        null != a;
        void 0 === a;
        void 0 !== a;

        null == a;
        null != a;
        void 0 === a;
        void 0 !== a;
    }
}