var Uglify = require('../../'); var assert = require("assert"); describe("let", function() { this.timeout(30000); it("Should not produce reserved keywords as variable name in mangle", function() { // Produce a lot of variables in a function and run it through mangle. var s = '"dddddeeeeelllllooooottttt"; function foo() {'; for (var i = 0; i < 18000; i++) { s += "var v" + i + "=0;"; } s += '}'; var result = Uglify.minify(s, { compress: false }).code; // Verify that select keywords and reserved keywords not produced [ "do", "let", "var", ].forEach(function(name) { assert.strictEqual(result.indexOf("var " + name + "="), -1); }); // Verify that the variable names that appeared immediately before // and after the erroneously generated variable name still exist // to show the test generated enough symbols. [ "to", "eo", "eet", "fet", "rar", "oar", ].forEach(function(name) { assert.notStrictEqual(result.indexOf("var " + name + "="), -1); }); }); it("Should quote mangled properties that are reserved keywords", function() { var s = '"rrrrrnnnnniiiiiaaaaa";'; for (var i = 0; i < 18000; i++) { s += "v.b" + i + ";"; } var result = Uglify.minify(s, { compress: false, ie8: true, mangle: { properties: true, } }).code; [ "in", "var", ].forEach(function(name) { assert.notStrictEqual(result.indexOf(name), -1); assert.notStrictEqual(result.indexOf('v["' + name + '"]'), -1); }); }); }); 'range'>range
path: root/doc/htmlxref.cnf
AgeCommit message (Expand)Author
2022-12-18doc: Update URLs for the manual and cookbook translations....* doc/htmlxref.cnf: Update URLs for "guix" and "guix-cookbook". Ludovic Courtès
2022-12-18doc: Add guile-netlink to 'htmlxref.cnf'....* doc/htmlxref.cnf: Add guile-netlink. Ludovic Courtès
2022-08-05doc: Fix Guix manual URLs in 'htmlxref.cnf'....Fixes a regression introduced in 868da34d54365023223a4ff7520043ba55ad64e8. * doc/htmlxref.cnf (GUIX): Remove "/guix". Ludovic Courtès
2022-06-16doc: Remove obsolete comment from htmlxref.cnf....This is follow up to <https://issues.guix.gnu.org/55290>. * doc/htmlxref.cnf (geiser): Delete obsolete comment. Maxim Cournoyer
2022-04-08doc: Fix cookbook URLs in htmlxref.cnf....Reported by Greg Hogan <code@greghogan.com>. * doc/htmlxref.cnf (GUIX_ROOT): New variable. (GUIX, GUIX_COOKBOOK): Adjust. Ludovic Courtès
2021-10-04doc: Update htmlxref.cnf....Update and fix broken references to cuirass, git, and guix-cookbook. * doc/htmlxref.cnf: Update from Texinfo. Factorize Guix manuals. (cuirass, git, guix-cookbook, guix-cookbook.de, guix-cookbook.fr): New entries. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Sarah Morgensen
2021-04-24doc: Fix cross-reference URL to translated manual....* doc/htmlxref.cnf: Fix translated manual URL. Julien Lepiller
2020-01-12doc: Update htmlxref.cnf....* doc/htmlxref.cnf: Update from Texinfo. Add entries for "mes", "guix.ru", and "guix.zh_CN". Ludovic Courtès
2019-05-04doc: Update htmlxref.cnf....* doc/htmlxref.cnf (G): Switch to https. (geiser, guix.de, guix.es, hurd): New entries. Ludovic Courtès