aboutsummaryrefslogtreecommitdiff
path: root/test/compress/new.js
blob: d956ae27b0d9f4249670e6cc1db5a3b53a2c361e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
new_statement: {
    input: {
        new x(1);
        new x(1)(2);
        new x(1)(2)(3);
        new new x(1);
        new new x(1)(2);
        new (new x(1))(2);
        (new new x(1))(2);
    }
    expect_exact: "new x(1);new x(1)(2);new x(1)(2)(3);new new x(1);new new x(1)(2);new new x(1)(2);(new new x(1))(2);"
}

new_with_rewritten_true_value: {
    options = { booleans: true }
    input: {
        new true;
    }
    expect_exact: "new(!0);"
}