aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-747.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-06-23 15:53:13 +0800
committerGitHub <noreply@github.com>2017-06-23 15:53:13 +0800
commitdc6bcaa18eda80f31674a1f8167d7fbe997f743b (patch)
tree3124db40e4b400402c6b937963830c0d9c436e87 /test/compress/issue-747.js
parentd58b184835d9c2316bfb4411d0907ebb4446aaf0 (diff)
downloadtracifyjs-dc6bcaa18eda80f31674a1f8167d7fbe997f743b.tar.gz
tracifyjs-dc6bcaa18eda80f31674a1f8167d7fbe997f743b.zip
synchronise `mangle.properties` for `minify()` & `test/compress` (#2151)
Diffstat (limited to 'test/compress/issue-747.js')
-rw-r--r--test/compress/issue-747.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/compress/issue-747.js b/test/compress/issue-747.js
index 0a4e4502..1f7079c2 100644
--- a/test/compress/issue-747.js
+++ b/test/compress/issue-747.js
@@ -1,37 +1,41 @@
dont_reuse_prop: {
mangle_props = {
regex: /asd/
- };
-
+ }
input: {
+ "aaaaaaaaaabbbbb";
var obj = {};
obj.a = 123;
obj.asd = 256;
console.log(obj.a);
}
expect: {
+ "aaaaaaaaaabbbbb";
var obj = {};
obj.a = 123;
obj.b = 256;
console.log(obj.a);
}
+ expect_stdout: "123"
}
unmangleable_props_should_always_be_reserved: {
mangle_props = {
regex: /asd/
- };
-
+ }
input: {
+ "aaaaaaaaaabbbbb";
var obj = {};
obj.asd = 256;
obj.a = 123;
console.log(obj.a);
}
expect: {
+ "aaaaaaaaaabbbbb";
var obj = {};
obj.b = 256;
obj.a = 123;
console.log(obj.a);
}
-} \ No newline at end of file
+ expect_stdout: "123"
+}