aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>2016-11-30 21:54:23 +0100
committerRichard van Velzen <rvanvelzen1@gmail.com>2017-01-19 17:13:33 +0100
commitda17766ddda3b89f94706ad7e329faa66a3e3a3e (patch)
tree8c7da6a97abdc3bb70edef0f089f27a001fc4952 /test
parent0913db8c84c670a2d34fd312295e54c679807558 (diff)
downloadtracifyjs-da17766ddda3b89f94706ad7e329faa66a3e3a3e.tar.gz
tracifyjs-da17766ddda3b89f94706ad7e329faa66a3e3a3e.zip
Add preventive test involving non-ascii function identifiers
Diffstat (limited to 'test')
-rw-r--r--test/compress/functions.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
new file mode 100644
index 00000000..3a8701b7
--- /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 λ(δλ){})();"
+}