aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1431.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-1431.js')
-rw-r--r--test/compress/issue-1431.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/compress/issue-1431.js b/test/compress/issue-1431.js
index 731ebba8..9493fd37 100644
--- a/test/compress/issue-1431.js
+++ b/test/compress/issue-1431.js
@@ -1,3 +1,32 @@
+level_zero: {
+ options = {
+ keep_fnames: true
+ }
+ mangle = {
+ keep_fnames: true
+ }
+ input: {
+ function f(x) {
+ function n(a) {
+ return a * a;
+ }
+ return function() {
+ return x;
+ };
+ }
+ }
+ expect: {
+ function f(r) {
+ function n(n) {
+ return n * n;
+ }
+ return function() {
+ return r;
+ };
+ }
+ }
+}
+
level_one: {
options = {
keep_fnames: true