aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-2719.js
blob: f11d00774abfa1e11c9759fde4609c72777b3673 (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
warn: {
    options = {
        evaluate: true,
        inline: true,
        passes: 2,
        properties: true,
        reduce_funcs: true,
        reduce_vars: true,
        toplevel: true,
        unused: true,
    }
    input: {
        function f() {
            return g();
        }
        function g() {
            return g["call" + "er"].arguments;
        }
        // 3
        console.log(f(1, 2, 3).length);
    }
    expect: {
        // TypeError: Cannot read property 'arguments' of null
        console.log(function g() {
            return g.caller.arguments;
        }().length);
    }
    expect_warnings: [
        "WARN: Function.prototype.arguments not supported [test/compress/issue-2719.js:5,19]",
        "WARN: Function.prototype.caller not supported [test/compress/issue-2719.js:5,19]",
    ]
}
Ludovic Courtès 2019-09-28daemon: Strictly respect timeouts for 'guix offload'....Ludovic Courtès 2019-09-16daemon: Include 'config.h' in 'nix-daemon.cc'....Timothy Sample 2019-09-08daemon: Remove 'NIX_LIBEXEC_DIR'....Ludovic Courtès 2019-09-08daemon: Run 'guix substitute' directly and assume a single substituter....Ludovic Courtès 2019-09-08daemon: Run 'guix offload' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix perform-download' directly....Ludovic Courtès 2019-09-08daemon: Run 'guix authenticate' directly....Ludovic Courtès 2019-09-08daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'....Ludovic Courtès 2019-08-30daemon: Don't reply on 'st_blocks'....Eelco Dolstra 2019-06-13daemon: Replace "illegal" by "invalid" in error messages....Ludovic Courtès