var Uglify = require('../../'); var assert = require("assert"); describe("comment before constant", function() { var js = 'function f() { /*c1*/ var /*c2*/ foo = /*c3*/ false; return foo; }'; it("Should test comment before constant is retained and output after mangle.", function() { var result = Uglify.minify(js, { fromString: true, compress: { collapse_vars: false }, mangle: {}, output: { comments: true }, }); assert.strictEqual(result.code, 'function f(){/*c1*/var/*c2*/n=/*c3*/!1;return n}'); }); it("Should test code works when comments disabled.", function() { var result = Uglify.minify(js, { fromString: true, compress: { collapse_vars: false }, mangle: {}, output: {}, }); assert.strictEqual(result.code, 'function f(){var n=!1;return n}'); }); }); class='sub'>Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/build-aux/update-NEWS.scm
AgeCommit message (Expand)Author
2019-05-20maint: update-NEWS: Track "gcc-toolchain", not "gcc"....This is a followup to d78010b81ee6ef4fd8803082e2f401b9e55b44db. * build-aux/update-NEWS.scm (write-packages-updates)[important]: Replace "gcc" by "gcc-toolchain". Ludovic Courtès