mirror of
https://github.com/swc-project/swc.git
synced 2024-11-30 15:23:33 +03:00
dd805e95a4
**Description:** Note: Preserving native names is a hack, but it's used by `terser` and it's the only way to preserve the name of `class AbortSignal` while mangling without `keep_classnames: true`. We can special case `AbortSignal`, but let's just follow `terser`. **Related issue:** - https://github.com/vercel/next.js/pull/57904
358 lines
14 KiB
Plaintext
358 lines
14 KiB
Plaintext
arguments/modified/input.js
|
|
arrays/constant_join/input.js
|
|
arrays/constant_join_2/input.js
|
|
arrays/constant_join_3/input.js
|
|
arrays/for_loop/input.js
|
|
arrays/index_length/input.js
|
|
arrow/issue_2084/input.js
|
|
arrow/issue_2105_1/input.js
|
|
arrow/issue_2105_2/input.js
|
|
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
|
|
classes/pure_prop_assignment_for_classes/input.js
|
|
collapse_vars/cascade_statement/input.js
|
|
collapse_vars/chained_1/input.js
|
|
collapse_vars/chained_2/input.js
|
|
collapse_vars/chained_3/input.js
|
|
collapse_vars/collapse_vars_arguments/input.js
|
|
collapse_vars/collapse_vars_constants/input.js
|
|
collapse_vars/collapse_vars_do_while/input.js
|
|
collapse_vars/collapse_vars_do_while_drop_assign/input.js
|
|
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
|
|
collapse_vars/collapse_vars_switch/input.js
|
|
collapse_vars/cond_branch_1/input.js
|
|
collapse_vars/cond_branch_2/input.js
|
|
collapse_vars/double_def_1/input.js
|
|
collapse_vars/double_def_2/input.js
|
|
collapse_vars/inner_lvalues/input.js
|
|
collapse_vars/issue_1605_2/input.js
|
|
collapse_vars/issue_1858/input.js
|
|
collapse_vars/issue_2187_2/input.js
|
|
collapse_vars/issue_2203_2/input.js
|
|
collapse_vars/issue_2203_4/input.js
|
|
collapse_vars/issue_2250_1/input.js
|
|
collapse_vars/issue_2298/input.js
|
|
collapse_vars/issue_2319_1/input.js
|
|
collapse_vars/issue_2319_3/input.js
|
|
collapse_vars/issue_2436_1/input.js
|
|
collapse_vars/issue_2436_10/input.js
|
|
collapse_vars/issue_2436_11/input.js
|
|
collapse_vars/issue_2436_13/input.js
|
|
collapse_vars/issue_2436_4/input.js
|
|
collapse_vars/issue_2436_6/input.js
|
|
collapse_vars/issue_2436_7/input.js
|
|
collapse_vars/issue_2436_8/input.js
|
|
collapse_vars/issue_2436_9/input.js
|
|
collapse_vars/issue_2437/input.js
|
|
collapse_vars/issue_2497/input.js
|
|
collapse_vars/issue_2506/input.js
|
|
collapse_vars/issue_2914_2/input.js
|
|
collapse_vars/issue_315/input.js
|
|
collapse_vars/lvalues_def/input.js
|
|
collapse_vars/noinline_annotation/input.js
|
|
collapse_vars/pure_getters_chain/input.js
|
|
collapse_vars/ref_scope/input.js
|
|
collapse_vars/replace_all_var_scope/input.js
|
|
collapse_vars/switch_case_1/input.js
|
|
collapse_vars/toplevel_single_reference/input.js
|
|
collapse_vars/undeclared/input.js
|
|
collapse_vars/unused_orig/input.js
|
|
conditionals/ifs_5/input.js
|
|
conditionals/ifs_6/input.js
|
|
conditionals/ifs_same_consequent/input.js
|
|
conditionals/issue_1154/input.js
|
|
conditionals/issue_2535_2/input.js
|
|
dead_code/dead_code_const_annotation/input.js
|
|
dead_code/dead_code_const_annotation_complex_scope/input.js
|
|
dead_code/dead_code_constant_boolean_should_warn_more/input.js
|
|
dead_code/global_fns/input.js
|
|
dead_code/issue_2749/input.js
|
|
dead_code/issue_2860_2/input.js
|
|
dead_code/return_assignment/input.js
|
|
destructuring/destructuring_dont_evaluate_with_undefined_as_default_assignment/input.js
|
|
destructuring/export_unreferenced_declarations_2/input.js
|
|
destructuring/issue_3205_5/input.js
|
|
destructuring/mangle_destructuring_assign_toplevel_false/input.js
|
|
destructuring/mangle_destructuring_assign_toplevel_true/input.js
|
|
destructuring/mangle_destructuring_decl_collapse_vars/input.js
|
|
destructuring/unused_destructuring_arrow_param/input.js
|
|
destructuring/unused_destructuring_getter_side_effect_2/input.js
|
|
drop_unused/chained_3/input.js
|
|
drop_unused/delete_assign_1/input.js
|
|
drop_unused/delete_assign_2/input.js
|
|
drop_unused/double_assign_1/input.js
|
|
drop_unused/double_assign_2/input.js
|
|
drop_unused/drop_toplevel_all_retain/input.js
|
|
drop_unused/drop_toplevel_funcs/input.js
|
|
drop_unused/drop_toplevel_funcs_retain/input.js
|
|
drop_unused/drop_toplevel_keep_assign/input.js
|
|
drop_unused/drop_toplevel_retain/input.js
|
|
drop_unused/drop_toplevel_retain_array/input.js
|
|
drop_unused/drop_toplevel_retain_regex/input.js
|
|
drop_unused/drop_toplevel_vars/input.js
|
|
drop_unused/drop_toplevel_vars_fargs/input.js
|
|
drop_unused/drop_toplevel_vars_retain/input.js
|
|
drop_unused/drop_var/input.js
|
|
drop_unused/issue_1583/input.js
|
|
drop_unused/issue_1715_3/input.js
|
|
drop_unused/issue_1830_1/input.js
|
|
drop_unused/issue_1830_2/input.js
|
|
drop_unused/issue_1838/input.js
|
|
drop_unused/issue_2063/input.js
|
|
drop_unused/issue_2105_1/input.js
|
|
drop_unused/issue_2105_2/input.js
|
|
drop_unused/issue_2163/input.js
|
|
drop_unused/issue_2226_2/input.js
|
|
drop_unused/issue_2226_3/input.js
|
|
drop_unused/issue_2288/input.js
|
|
drop_unused/issue_2418_4/input.js
|
|
drop_unused/issue_2516_1/input.js
|
|
drop_unused/issue_2516_2/input.js
|
|
drop_unused/issue_2660_2/input.js
|
|
drop_unused/issue_2665/input.js
|
|
drop_unused/issue_2846/input.js
|
|
drop_unused/issue_t161_top_retain_10/input.js
|
|
drop_unused/issue_t161_top_retain_11/input.js
|
|
drop_unused/issue_t161_top_retain_12/input.js
|
|
drop_unused/issue_t161_top_retain_15/input.js
|
|
drop_unused/issue_t161_top_retain_8/input.js
|
|
drop_unused/issue_t161_top_retain_9/input.js
|
|
drop_unused/issue_t183/input.js
|
|
drop_unused/keep_assign/input.js
|
|
drop_unused/reassign_const/input.js
|
|
drop_unused/unused_circular_references_2/input.js
|
|
drop_unused/unused_circular_references_3/input.js
|
|
drop_unused/var_catch_toplevel/input.js
|
|
evaluate/issue_2207_3/input.js
|
|
evaluate/issue_2535_1/input.js
|
|
evaluate/issue_399/input.js
|
|
evaluate/prototype_function/input.js
|
|
evaluate/self_comparison_1/input.js
|
|
evaluate/self_comparison_2/input.js
|
|
export/export_default_named_async_function/input.js
|
|
export/export_default_named_generator/input.js
|
|
export/module_mangle_export_default_class/input.js
|
|
export/module_mangle_export_default_function/input.js
|
|
export/name_cache_do_not_mangle_export_class_name/input.js
|
|
export/name_cache_do_not_mangle_export_const_name/input.js
|
|
export/name_cache_do_not_mangle_export_destructuring_name/input.js
|
|
export/name_cache_do_not_mangle_export_from_names/input.js
|
|
export/name_cache_do_not_mangle_export_function_name/input.js
|
|
export/name_cache_do_not_mangle_export_let_name/input.js
|
|
export/name_cache_do_not_mangle_export_var_name/input.js
|
|
export/name_cache_import_star_as_name_from_module/input.js
|
|
export/name_cache_mangle_export_default_class/input.js
|
|
export/name_cache_mangle_export_default_function/input.js
|
|
export/name_cache_mangle_local_import_and_export_aliases/input.js
|
|
functions/duplicate_arg_var/input.js
|
|
functions/hoist_funs/input.js
|
|
functions/hoist_funs_strict/input.js
|
|
functions/issue_203/input.js
|
|
functions/issue_2084/input.js
|
|
functions/issue_2107/input.js
|
|
functions/issue_2114_1/input.js
|
|
functions/issue_2114_2/input.js
|
|
functions/issue_2601_2/input.js
|
|
functions/issue_2604_2/input.js
|
|
functions/issue_2616/input.js
|
|
functions/issue_2620_2/input.js
|
|
functions/issue_2620_3/input.js
|
|
functions/issue_2630_2/input.js
|
|
functions/issue_2630_5/input.js
|
|
functions/issue_2898/input.js
|
|
functions/issue_3016_1/input.js
|
|
functions/issue_3016_2/input.js
|
|
functions/issue_3016_3/input.js
|
|
functions/issue_3018/input.js
|
|
functions/issue_3076/input.js
|
|
functions/issue_3125/input.js
|
|
functions/issue_3166/input.js
|
|
functions/issue_t131a/input.js
|
|
functions/issue_t131b/input.js
|
|
global_defs/issue_3217/input.js
|
|
harmony/array_literal_with_spread_2b/input.js
|
|
harmony/array_literal_with_spread_4b/input.js
|
|
harmony/class_name_can_be_preserved_with_reserved/input.js
|
|
harmony/classes_extending_classes_out_of_pure_iifes/input.js
|
|
harmony/default_assign/input.js
|
|
harmony/expansion/input.js
|
|
harmony/inline_arrow_using_arguments/input.js
|
|
harmony/issue_2349b/input.js
|
|
harmony/issue_2794_1/input.js
|
|
harmony/issue_2794_2/input.js
|
|
harmony/issue_2874_1/input.js
|
|
harmony/issue_2874_2/input.js
|
|
harmony/module_enabled/input.js
|
|
harmony/module_mangle_scope/input.js
|
|
harmony/regression_cannot_use_of/input.js
|
|
if_return/if_return_same_value/input.js
|
|
if_return/if_var_return/input.js
|
|
if_return/issue_2747/input.js
|
|
if_return/issue_512/input.js
|
|
inline/inline_annotation/input.js
|
|
inline/inline_within_extends_1/input.js
|
|
inline/inline_within_extends_2/input.js
|
|
issue_1034/non_hoisted_function_after_return/input.js
|
|
issue_1034/non_hoisted_function_after_return_2a/input.js
|
|
issue_1034/non_hoisted_function_after_return_2a_strict/input.js
|
|
issue_1034/non_hoisted_function_after_return_2b/input.js
|
|
issue_1034/non_hoisted_function_after_return_2b_strict/input.js
|
|
issue_1034/non_hoisted_function_after_return_strict/input.js
|
|
issue_1052/deeply_nested/input.js
|
|
issue_1052/defun_hoist_funs/input.js
|
|
issue_1052/multiple_functions/input.js
|
|
issue_1052/not_hoisted_when_already_nested/input.js
|
|
issue_1052/single_function/input.js
|
|
issue_1105/assorted_Infinity_NaN_undefined_in_with_scope/input.js
|
|
issue_1105/assorted_Infinity_NaN_undefined_in_with_scope_keep_infinity/input.js
|
|
issue_1105/check_drop_unused_in_peer_function/input.js
|
|
issue_1105/compress_with_with_in_other_scope/input.js
|
|
issue_1105/with_in_function_scope/input.js
|
|
issue_1105/with_using_existing_variable_outside_scope/input.js
|
|
issue_1261/pure_function_calls/input.js
|
|
issue_1261/pure_function_calls_toplevel/input.js
|
|
issue_1443/keep_fnames/input.js
|
|
issue_1447/conditional_false_stray_else_in_loop/input.js
|
|
issue_1466/different_variable_in_multiple_forIn/input.js
|
|
issue_1466/different_variable_in_multiple_forOf/input.js
|
|
issue_1466/different_variable_in_multiple_for_loop/input.js
|
|
issue_1466/more_variable_in_multiple_for/input.js
|
|
issue_1466/same_variable_in_multiple_forIn/input.js
|
|
issue_1466/same_variable_in_multiple_forIn_sequences_const/input.js
|
|
issue_1466/same_variable_in_multiple_forIn_sequences_let/input.js
|
|
issue_1466/same_variable_in_multiple_forOf/input.js
|
|
issue_1466/same_variable_in_multiple_forOf_sequences_const/input.js
|
|
issue_1466/same_variable_in_multiple_forOf_sequences_let/input.js
|
|
issue_1466/same_variable_in_multiple_for_loop/input.js
|
|
issue_1569/inner_reference/input.js
|
|
issue_1639/issue_1639_1/input.js
|
|
issue_1750/case_1/input.js
|
|
issue_1770/mangle_props/input.js
|
|
issue_1770/numeric_literal/input.js
|
|
issue_1833/label_while/input.js
|
|
issue_203/compress_new_function/input.js
|
|
issue_203/compress_new_function_with_destruct/input.js
|
|
issue_203/compress_new_function_with_destruct_arrows/input.js
|
|
issue_22/return_with_no_value_in_if_body/input.js
|
|
issue_281/collapse_vars_constants/input.js
|
|
issue_2871/comparison_with_undefined/input.js
|
|
issue_417/test_unexpected_crash/input.js
|
|
issue_417/test_unexpected_crash_2/input.js
|
|
issue_44/issue_44_valid_ast_1/input.js
|
|
issue_44/issue_44_valid_ast_2/input.js
|
|
issue_640/conditional/input.js
|
|
issue_747/dont_reuse_prop/input.js
|
|
issue_747/unmangleable_props_should_always_be_reserved/input.js
|
|
issue_751/negate_booleans_1/input.js
|
|
issue_913/keep_var_for_in/input.js
|
|
issue_976/eval_mangle/input.js
|
|
issue_976/eval_unused/input.js
|
|
issue_979/issue979_reported/input.js
|
|
issue_979/issue979_test_negated_is_best/input.js
|
|
issue_t120/issue_t120_3/input.js
|
|
issue_t120/issue_t120_4/input.js
|
|
issue_t120/issue_t120_5/input.js
|
|
issue_t120/pr_152_regression/input.js
|
|
issue_t292/no_flatten_with_arg_colliding_with_arg_value_inner_scope/input.js
|
|
issue_t292/no_flatten_with_var_colliding_with_arg_value_inner_scope/input.js
|
|
keep_names/keep_some_classnames/input.js
|
|
keep_names/keep_some_fnames/input.js
|
|
keep_names/keep_some_fnames_reduce/input.js
|
|
keep_quoted_strict/keep_quoted_strict/input.js
|
|
logical_assignment/assignment_in_left_part_2/input.js
|
|
loops/drop_if_else_break_1/input.js
|
|
loops/issue_2740_3/input.js
|
|
loops/issue_2740_4/input.js
|
|
loops/issue_2740_5/input.js
|
|
loops/issue_2740_6/input.js
|
|
loops/issue_2740_7/input.js
|
|
loops/issue_2740_8/input.js
|
|
negate_iife/issue_1254_negate_iife_nested/input.js
|
|
negate_iife/issue_1254_negate_iife_true/input.js
|
|
negate_iife/issue_1288/input.js
|
|
nullish/conditional_to_nullish_coalescing/input.js
|
|
nullish/conditional_to_nullish_coalescing_2/input.js
|
|
numbers/evaluate_1/input.js
|
|
numbers/evaluate_2/input.js
|
|
numbers/evaluate_3/input.js
|
|
numbers/evaluate_4/input.js
|
|
object/concise_methods_and_mangle_props/input.js
|
|
object/dont_join_repeat_object_keys/input.js
|
|
object/prop_arrow_with_nested_this/input.js
|
|
object/prop_arrow_with_this/input.js
|
|
object/prop_func_to_async_concise_method/input.js
|
|
object/prop_func_to_concise_method/input.js
|
|
object/prop_func_to_concise_method_various/input.js
|
|
parameters/destructuring_arguments_3/input.js
|
|
reduce_vars/array_forin_1/input.js
|
|
reduce_vars/conditional_chain_certain_part/input.js
|
|
reduce_vars/defun_catch_1/input.js
|
|
reduce_vars/defun_catch_2/input.js
|
|
reduce_vars/defun_catch_3/input.js
|
|
reduce_vars/defun_catch_6/input.js
|
|
reduce_vars/defun_label/input.js
|
|
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
|
|
reduce_vars/func_modified/input.js
|
|
reduce_vars/iife/input.js
|
|
reduce_vars/iife_new/input.js
|
|
reduce_vars/inner_var_for_2/input.js
|
|
reduce_vars/inverted_var/input.js
|
|
reduce_vars/issue_1595_3/input.js
|
|
reduce_vars/issue_1670_2/input.js
|
|
reduce_vars/issue_1670_4/input.js
|
|
reduce_vars/issue_1670_5/input.js
|
|
reduce_vars/issue_1850_2/input.js
|
|
reduce_vars/issue_2449/input.js
|
|
reduce_vars/issue_2485/input.js
|
|
reduce_vars/issue_2757_1/input.js
|
|
reduce_vars/issue_2799_2/input.js
|
|
reduce_vars/issue_2836/input.js
|
|
reduce_vars/issue_2860_2/input.js
|
|
reduce_vars/issue_294/input.js
|
|
reduce_vars/issue_3140_4/input.js
|
|
reduce_vars/modified/input.js
|
|
reduce_vars/obj_arg_2/input.js
|
|
reduce_vars/obj_var_2/input.js
|
|
reduce_vars/passes/input.js
|
|
reduce_vars/perf_3/input.js
|
|
reduce_vars/perf_7/input.js
|
|
reduce_vars/pure_getters_2/input.js
|
|
reduce_vars/pure_getters_3/input.js
|
|
reduce_vars/redefine_farg_1/input.js
|
|
reduce_vars/redefine_farg_2/input.js
|
|
reduce_vars/redefine_farg_3/input.js
|
|
reduce_vars/reduce_vars/input.js
|
|
reduce_vars/regex_loop/input.js
|
|
return_undefined/return_undefined/input.js
|
|
sequences/delete_seq_4/input.js
|
|
sequences/delete_seq_5/input.js
|
|
sequences/for_init_var/input.js
|
|
sequences/for_sequences/input.js
|
|
sequences/issue_2062/input.js
|
|
sequences/side_effects_cascade_3/input.js
|
|
template_string/regex_2/input.js
|
|
template_string/side_effects/input.js
|
|
template_string/template_evaluate_undefined/input.js
|
|
transform/label_if_break/input.js
|
|
typeof/typeof_defun_1/input.js
|