aboutsummaryrefslogtreecommitdiff
path: root/test/input/reduce/setter.reduced.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/input/reduce/setter.reduced.js')
-rw-r--r--test/input/reduce/setter.reduced.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/input/reduce/setter.reduced.js b/test/input/reduce/setter.reduced.js
new file mode 100644
index 00000000..d947226f
--- /dev/null
+++ b/test/input/reduce/setter.reduced.js
@@ -0,0 +1,19 @@
+console.log(function f(a) {
+ ({
+ set p(v) {
+ f++;
+ }
+ });
+ return f.length;
+}());
+// output: 1
+//
+// minify: 0
+//
+// options: {
+// "compress": {
+// "keep_fargs": false,
+// "unsafe": true
+// },
+// "mangle": false
+// } \ No newline at end of file