aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-12.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-12.js')
-rw-r--r--test/compress/issue-12.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/compress/issue-12.js b/test/compress/issue-12.js
new file mode 100644
index 00000000..711c79ea
--- /dev/null
+++ b/test/compress/issue-12.js
@@ -0,0 +1,9 @@
+keep_name_of_getter: {
+ input: { a = { get foo () {} } }
+ expect: { a = { get foo () {} } }
+}
+
+keep_name_of_setter: {
+ input: { a = { set foo () {} } }
+ expect: { a = { set foo () {} } }
+}