swc/ecmascript/minifier/tests/terser/compress/collapse_vars
강동윤 ef6a745599
feat(es/minifier): Implement more rules (#1735)
swc_ecma_minifier:
 - Implement `evaluate` partially.
 - Store 'expected output' from terser along with our result.

swc_ecma_transforms_base:
 - `fixer`: Don't wrap `+ (a % b)`.

swc_ecma_transforms_optimization:
 - `expr_simplifier`: Preserve this in calls.
2021-05-25 16:39:07 +09:00
..
anonymous_function feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
assignment feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
boolean_binary_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
boolean_binary_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_call feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_conditional feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_forin feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_if_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_if_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_return feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_statement feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_switch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
chained_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
chained_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
chained_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_array feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_boolean_1 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_boolean_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_conditional_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_conditional_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_function feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_lhs_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_lhs_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_loop feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_number feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_object feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_regexp feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_side_effects feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_rhs_string feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_this feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_undefined feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_var feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_rhs_vardef feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_vars_arguments feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_array feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_assignment feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_closures feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_constants feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_do_while feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_do_while_drop_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_eval_and_with feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_if feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_issue_721 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_lvalues feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_lvalues_drop_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_misc1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_object feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_properties feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_regexp feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_repeated feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_self_reference feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_seq feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_short_circuit feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_short_circuited_conditions feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_side_effects_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_side_effects_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_switch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_throw feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_try feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_unary feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
collapse_vars_unary_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
collapse_vars_while feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
compound_assignment feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cond_branch_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cond_branch_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cond_branch_switch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
conditional_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
conditional_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
double_def_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
double_def_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
duplicate_argname feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
for_init feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
ignore_class feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
iife_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
iife_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
inner_lvalues feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_27 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_315 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_348 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_805 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_1537 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_destructuring_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_destructuring_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_destructuring_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_destructuring_for_in feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_destructuring_for_of feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1537_for_of feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1562 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1605_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1605_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1631_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1631_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1631_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1858 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2187_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2187_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2187_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2203_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2203_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2203_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2203_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2250_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2250_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2298 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2313_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2313_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2319_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2319_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2319_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_5 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_6 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_7 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_8 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2364_9 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2365 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2425_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2425_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2425_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_5 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_6 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_7 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_8 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_9 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_10 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_11 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_12 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_13 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2436_14 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2437 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2437_1 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_2437_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_2453 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2497 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2506 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2571_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2571_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2858 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2873_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2873_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2878 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2891_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2891_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2908 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2914_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2914_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2931 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2954_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2954_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2954_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2974 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_3032 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_3096 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
lvalues_def feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
may_throw_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
may_throw_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
modified feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
noinline_annotation feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
pure_getters_chain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
reassign_const_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
reassign_const_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
recursive_function_replacement feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
reduce_vars_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
ref_scope feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
replace_all_var feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
replace_all_var_scope feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
return_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
return_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
return_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
return_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
side_effect_free_replacement feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
side_effects_property feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
switch_case_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
switch_case_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
switch_case_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
toplevel_single_reference feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
undeclared feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unsafe_builtin feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_orig feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
var_defs feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
var_side_effects_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
var_side_effects_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
var_side_effects_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00