improve diagnostics on top_retain & mangle.properties (#5622)

closes #5618
This commit is contained in:
Alex Lam S.L
2022-08-18 19:32:21 +01:00
committed by GitHub
parent ac002b6338
commit 4653e8aec0
7 changed files with 100 additions and 8 deletions

View File

@@ -19,6 +19,11 @@ dont_reuse_prop: {
console.log(obj.a);
}
expect_stdout: "123"
expect_warnings: [
"INFO: Preserving excluded property a",
"INFO: Preserving reserved property log",
"INFO: Mapping property asd to b",
]
}
unmangleable_props_should_always_be_reserved: {
@@ -42,4 +47,9 @@ unmangleable_props_should_always_be_reserved: {
console.log(obj.a);
}
expect_stdout: "123"
expect_warnings: [
"INFO: Preserving excluded property a",
"INFO: Preserving reserved property log",
"INFO: Mapping property asd to b",
]
}