aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-12 10:49:48 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-12 10:49:48 +0300
commit731fa9c2360334d374593ea0a79031d24c9c7107 (patch)
tree339784e147768436c69010a8a497480ee46480af
parent72cb5328ee58307ccb9bc91ac5826c3a41aac4d2 (diff)
downloadtracifyjs-731fa9c2360334d374593ea0a79031d24c9c7107.tar.gz
tracifyjs-731fa9c2360334d374593ea0a79031d24c9c7107.zip
add test for issue #12
-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 () {} } }
+}