Skip to content

Commit

Permalink
test(es/minifier): Update the passing terser test list (#8984)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored May 27, 2024
1 parent ab32e69 commit c0dc5e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
3 changes: 0 additions & 3 deletions crates/swc_ecma_minifier/tests/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ascii/ascii_only_false/input.js
ascii/ascii_only_true/input.js
asm/asm_mixed/input.js
async/async_inline/input.js
block_scope/issue_334/input.js
class_properties/class_expression_constant/input.js
class_properties/mangle_class_properties_keep_quoted/input.js
class_properties/static_means_execution/input.js
Expand All @@ -27,7 +26,6 @@ collapse_vars/collapse_vars_if/input.js
collapse_vars/collapse_vars_lvalues/input.js
collapse_vars/collapse_vars_misc1/input.js
collapse_vars/collapse_vars_object/input.js
collapse_vars/collapse_vars_repeated/input.js
collapse_vars/collapse_vars_short_circuit/input.js
collapse_vars/collapse_vars_short_circuited_conditions/input.js
collapse_vars/collapse_vars_side_effects_1/input.js
Expand Down Expand Up @@ -282,7 +280,6 @@ reduce_vars/defun_redefine/input.js
reduce_vars/defun_var_1/input.js
reduce_vars/defun_var_2/input.js
reduce_vars/delay_def/input.js
reduce_vars/escape_expansion/input.js
reduce_vars/escaped_prop_1/input.js
reduce_vars/escaped_prop_2/input.js
reduce_vars/func_arg_2/input.js
Expand Down
4 changes: 4 additions & 0 deletions crates/swc_ecma_minifier/tests/passing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ block_scope/do_not_hoist_let/input.js
block_scope/do_not_remove_anon_blocks_if_they_have_decls/input.js
block_scope/drop_undefined_vardef/input.js
block_scope/issue_241/input.js
block_scope/issue_334/input.js
block_scope/issue_508/input.js
block_scope/let_statement/input.js
block_scope/regression_block_scope_resolves/input.js
Expand Down Expand Up @@ -154,6 +155,7 @@ collapse_vars/collapse_vars_issue_721/input.js
collapse_vars/collapse_vars_lvalues_drop_assign/input.js
collapse_vars/collapse_vars_properties/input.js
collapse_vars/collapse_vars_regexp/input.js
collapse_vars/collapse_vars_repeated/input.js
collapse_vars/collapse_vars_self_reference/input.js
collapse_vars/collapse_vars_seq/input.js
collapse_vars/collapse_vars_side_effects_2/input.js
Expand Down Expand Up @@ -430,6 +432,7 @@ drop_unused/drop_assign/input.js
drop_unused/drop_fargs/input.js
drop_unused/drop_fnames/input.js
drop_unused/drop_toplevel_all/input.js
drop_unused/drop_toplevel_all_retain/input.js
drop_unused/drop_value/input.js
drop_unused/function_argument_modified_by_function_statement/input.js
drop_unused/global_var/input.js
Expand Down Expand Up @@ -1302,6 +1305,7 @@ reduce_vars/duplicate_lambda_defun_name_1/input.js
reduce_vars/duplicate_lambda_defun_name_2/input.js
reduce_vars/escape_await/input.js
reduce_vars/escape_conditional/input.js
reduce_vars/escape_expansion/input.js
reduce_vars/escape_local_conditional/input.js
reduce_vars/escape_local_sequence/input.js
reduce_vars/escape_local_throw/input.js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
(function (A) {
A.x || console.log(A);
})("Hello World!");
var A;
(A = "Hello World!").x || console.log(A);
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@ function f1() {
function f2(x) {
return x;
}
(function (x) {
console.log("GOOD!!");
})(),
(function (x) {
console.log("GOOD!!");
})();
console.log("GOOD!!"), console.log("GOOD!!");

0 comments on commit c0dc5e4

Please sign in to comment.