Add preventive test involving non-ascii function identifiers
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>
Wed, 30 Nov 2016 20:54:23 +0000 (21:54 +0100)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Thu, 19 Jan 2017 16:13:33 +0000 (17:13 +0100)
test/compress/functions.js [new file with mode: 0644]

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