Add mangle = { ...mangleopts } option to tests.
This commit is contained in:
@@ -104,6 +104,9 @@ function run_compress_tests() {
|
||||
}
|
||||
var output = input.transform(cmp);
|
||||
output.figure_out_scope();
|
||||
if (test.mangle) {
|
||||
output.mangle_names(test.mangle);
|
||||
}
|
||||
output = make_code(output, false);
|
||||
if (expect != output) {
|
||||
log("!!! failed\n---INPUT---\n{input}\n---OUTPUT---\n{output}\n---EXPECTED---\n{expected}\n\n", {
|
||||
|
||||
Reference in New Issue
Block a user