[Pkg-javascript-commits] [uglifyjs] 03/228: Add preventive test involving non-ascii function identifiers

Jonas Smedegaard dr at jones.dk
Sat Apr 15 14:25:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository uglifyjs.

commit da17766ddda3b89f94706ad7e329faa66a3e3a3e
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Wed Nov 30 21:54:23 2016 +0100

    Add preventive test involving non-ascii function identifiers
---
 test/compress/functions.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/compress/functions.js b/test/compress/functions.js
new file mode 100644
index 0000000..3a8701b
--- /dev/null
+++ b/test/compress/functions.js
@@ -0,0 +1,8 @@
+non_ascii_function_identifier_name: {
+    input: {
+        function fooλ(δλ) {}
+        function λ(δλ) {}
+        (function λ(δλ) {})()
+    }
+    expect_exact: "function fooλ(δλ){}function λ(δλ){}(function λ(δλ){})();"
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list