swc/crates/swc_ecma_minifier/tests/terser/compress/destructuring
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
..
anon_func_with_destructuring_args test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
arrow_func_with_destructuring_args test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructure_empty_array_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructure_empty_array_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructure_empty_array_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_arrays test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_arrays_holes test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_assign_of_computed_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_assign_of_numeric_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_constdef_in_loops test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_decl_of_computed_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_decl_of_numeric_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_dont_evaluate_with_undefined_as_default_assignment test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_expressions test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_letdef_in_loops test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_objects test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_objects_trailing_elision test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_remove_unused_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
destructuring_remove_unused_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_vardef_in_loops test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
destructuring_with_undefined_as_default_assignment test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
empty_object_destructuring_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
empty_object_destructuring_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
empty_object_destructuring_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
empty_object_destructuring_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
empty_object_destructuring_misc test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_function_containing_destructuring_decl test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_unreferenced_declarations_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
export_unreferenced_declarations_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1886 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2044_ecma_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2044_ecma_5_beautify test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2044_ecma_6 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2044_ecma_6_beautify test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2140 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3205_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3205_2 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_3205_3 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_3205_4 feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
issue_3205_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_2a test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_2b test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_2c test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t111_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
mangle_destructuring_assign_toplevel_false test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
mangle_destructuring_assign_toplevel_true test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
mangle_destructuring_decl test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
mangle_destructuring_decl_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
mangle_destructuring_decl_collapse_vars test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
nested_destructuring_objects test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
object_destructuring_may_need_parentheses test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
reduce_vars test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_arrow_param test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_assign_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_assign_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_destructuring_class_method_param test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_decl_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_declaration_complex_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_declaration_complex_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_function_param test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_getter_side_effect_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_destructuring_getter_side_effect_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_destructuring_multipass test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_destructuring_object_method_param test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00