aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-782.js
blob: 6e1c92f5c13c585970e89ddae96944f3f7589c62 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
remove_sequence: {
    options = {
        side_effects: true,
    }
    input: {
        (0, 1, eval)();
        (0, 1, logThis)();
        (0, 1, _decorators.logThis)();
    }
    expect: {
        eval();
        logThis();
        (0, _decorators.logThis)();
    }
}

remove_redundant_sequence_items: {
    options = {
        side_effects: true,
    }
    input: {
        "use strict";
        (0, 1, eval)();
        (0, 1, logThis)();
        (0, 1, _decorators.logThis)();
    }
    expect: {
        "use strict";
        (0, eval)();
        logThis();
        (0, _decorators.logThis)();
    }
}

dont_remove_this_binding_sequence: {
    options = {
        side_effects: true,
    }
    input: {
        "use strict";
        (0, eval)();
        (0, logThis)();
        (0, _decorators.logThis)();
    }
    expect: {
        "use strict";
        (0, eval)();
        logThis();
        (0, _decorators.logThis)();
    }
}