var Uglify = require('../../'); var assert = require("assert"); describe("let", function() { it("Should not produce `let` as a variable name in mangle", function(done) { this.timeout(10000); // Produce a lot of variables in a function and run it through mangle. var s = '"use strict"; function foo() {'; for (var i = 0; i < 21000; ++i) { s += "var v" + i + "=0;"; } s += '}'; var result = Uglify.minify(s, {fromString: true, compress: false}); // Verify that select keywords and reserved keywords not produced assert.strictEqual(result.code.indexOf("var let="), -1); assert.strictEqual(result.code.indexOf("var do="), -1); assert.strictEqual(result.code.indexOf("var var="), -1); // Verify that the variable names that appeared immediately before // and after the erroneously generated `let` variable name still exist // to show the test generated enough symbols. assert(result.code.indexOf("var ket=") >= 0); assert(result.code.indexOf("var met=") >= 0); done(); }); }); /'>summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorng0 <ng0@we.make.ritual.n0.is>2016-11-18 17:28:45 +0000
committer宋文武 <iyzsong@gmail.com>2016-11-19 20:19:03 +0800
commit5cd41292211568fbd34babc97aeaf6ee92a27103 (patch)
tree169b0e0796a5594203c377db1224b26d63c03313 /gnu/packages
parentfd057b84ecb863be1db9307bf482f8b0add08fa4 (diff)
downloadguix-5cd41292211568fbd34babc97aeaf6ee92a27103.tar.gz
guix-5cd41292211568fbd34babc97aeaf6ee92a27103.zip
gnu: emacs-cyberpunk-theme: Update to 1.18.
* gnu/packages/emacs.scm (emacs-cyberpunk-theme): Update to 1.18. Signed-off-by: 宋文武 <iyzsong@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm