swc/crates/swc_ecma_minifier/tests/terser/compress/drop_unused
Donny/강동윤 5d52ae971e
feat(es/minifier): Implement trivial optimizations (#6256)
**Description:**

1. Evaluate `Number.toString()`.
2. Mark some terser tests as passing where our output is better.
2022-11-02 01:21:32 +00:00
..
assign_binding feat(es/minifier): Respect options (#6245) 2022-10-25 04:00:16 +00:00
assign_chain test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
cascade_drop_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
chained_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
const_assign test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_lambda_same_name test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
delete_assign_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delete_assign_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
double_assign_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
double_assign_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
double_assign_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_fargs test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
drop_fnames test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
drop_toplevel_all test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_all_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_funcs test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_funcs_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_keep_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain_regex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars_fargs test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_value test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_var test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
function_argument_modified_by_function_statement test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
global_var test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
iife test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_805_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_805_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1539 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1583 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1656 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1709 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1715_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_4 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_1830_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1830_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1838 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1968 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_2063 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2105_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2105_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2163 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2226_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2226_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2226_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2288 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_1 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_2418_2 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_2418_3 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_2418_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2516_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2516_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2660_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2660_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2665 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2768 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2846 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2995 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_3146_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_3192 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_3 feat(es/minifier): Merge functions using sequential inliner (#6148) 2022-10-20 02:24:09 +00:00
issue_t161_top_retain_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_7 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_8 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_9 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_10 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_11 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_12 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_13 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_14 feat(es/minifier): Make sequential inliner self-repeat (#6168) 2022-10-18 02:13:39 +00:00
issue_t161_top_retain_15 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t183 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
keep_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
keep_fnames fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
reassign_const test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_block_decls test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_block_decls_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_circular_references_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_circular_references_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_circular_references_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_class_which_extends_might_throw test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_with_static_props_side_effects test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_with_static_props_side_effects_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_funarg_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_funarg_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_keep_harmony_destructuring test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_keep_setter_arg test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_nested_function test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_null_conditional_chain test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_seq_elements test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_var_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
used_block_decls_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
used_var_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
var_catch_toplevel test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
vardef_value test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
variable_refs_outside_unused_class test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00