File: issue-1041.js

package info (click to toggle)
node-terser 5.46.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,248 kB
  • sloc: javascript: 101,516; makefile: 52; perl: 48; sh: 13
file content (43 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (6)
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
const_declaration: {
    options = {
        evaluate: true
    };

    input: {
        const goog = goog || {};
    }
    expect: {
        const goog = goog || {};
    }
}

const_pragma: {
    options = {
        evaluate: true,
        reduce_funcs: true,
        reduce_vars: true,
    }

    input: {
        /** @const */ var goog = goog || {};
    }
    expect: {
        var goog = goog || {};
    }
}

// for completeness' sake
not_const: {
    options = {
        evaluate: true,
        reduce_funcs: true,
        reduce_vars: true,
    }

    input: {
        var goog = goog || {};
    }
    expect: {
        var goog = goog || {};
    }
}