aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/screw-ie8.js
blob: e120a475a466643b92e57022ae04469d3d002a30 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var assert = require("assert");
var uglify = require("../../");

describe("screw-ie8", function () {
    it("Should be able to minify() with undefined as catch parameter in a try...catch statement", function () {
        assert.strictEqual(
            uglify.minify(
                "function a(b){\
                    try {\
                        throw 'Stuff';\
                    } catch (undefined) {\
                        console.log('caught: ' + undefined);\
                    }\
                    console.log('undefined is ' + undefined);\
                    return b === undefined;\
                };"
            ).code,
            'function a(o){try{throw"Stuff"}catch(o){console.log("caught: "+o)}return console.log("undefined is "+void 0),void 0===o}'
        );
    });
});
f-contained: Adapt it. * etc/release-manifest.scm: Ditto. * gnu/ci.scm (package->alist): Remove it. (derivation->job): New procedure. (package-job, package-cross-job, cross-jobs, image-jobs, system-test-jobs, tarball-jobs): Use it. (guix-jobs): New procedure. (hydra-jobs): Rename it to ... (cuirass-jobs): ... this procedure. Mathieu Othacehe 2020-11-08maint: Reduce the package set for "i586-gnu"....* etc/release-manifest.scm (%base-packages/hurd): New variable. (%base-manifest): Use it when SYSTEM is "i586-gnu". Ludovic Courtès 2020-10-13installer: Add Emacs EXWM desktop environment....Suggested by zenny via IRC. * gnu/installer/services.scm (%system-services): Add emacs, emacs-exwm, emacs-desktop-environment. * etc/release-manifest.scm (%system-packages): Likewise. * gnu/system/examples/lightweight-desktop.tmpl: Likewise. * gnu/tests/install.scm (installation-target-desktop-os-for-gui-tests) [packages]: Likewise * gnu/installer/newt/services.scm (run-desktop-environments-cbt-page): Make one entry taller. Jan (janneke) Nieuwenhuizen