aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-747.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-07-29 23:02:04 +0800
committerGitHub <noreply@github.com>2017-07-29 23:02:04 +0800
commita845897758aa2cbccf71f37643d31b08cdd22a0e (patch)
treea845d73050ec30bbc089252df13a2258053c5e65 /test/compress/issue-747.js
parent32ea2c5530079ddbbbc50b23b2adeff44ba7b5df (diff)
downloadtracifyjs-a845897758aa2cbccf71f37643d31b08cdd22a0e.tar.gz
tracifyjs-a845897758aa2cbccf71f37643d31b08cdd22a0e.zip
improve `mangle.properties` (#2261)
- include dead code when `keep_quoted` - unify `keep_quoted` & `reserved` - make `test/run-tests.js` consistent with `minify()` fixes #2256
Diffstat (limited to 'test/compress/issue-747.js')
-rw-r--r--test/compress/issue-747.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/compress/issue-747.js b/test/compress/issue-747.js
index 1f7079c2..e074305a 100644
--- a/test/compress/issue-747.js
+++ b/test/compress/issue-747.js
@@ -1,6 +1,8 @@
dont_reuse_prop: {
- mangle_props = {
- regex: /asd/
+ mangle = {
+ properties: {
+ regex: /asd/,
+ },
}
input: {
"aaaaaaaaaabbbbb";
@@ -20,8 +22,10 @@ dont_reuse_prop: {
}
unmangleable_props_should_always_be_reserved: {
- mangle_props = {
- regex: /asd/
+ mangle = {
+ properties: {
+ regex: /asd/,
+ },
}
input: {
"aaaaaaaaaabbbbb";