swc/crates/swc_ecma_minifier/tests/terser/compress/evaluate
Donny/강동윤 dd805e95a4
feat(es/minifier): Respect inline level and preserve native names (#8205)
**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
2023-11-02 08:59:59 +09:00
..
and test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
array_slice_index test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
call_args test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
call_args_drop_param test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
delete_binary_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delete_binary_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delete_expr_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delete_expr_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
global_hasOwnProperty test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
in_boolean_context test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
Infinity_NaN_undefined_LHS test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_399 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1649 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1760_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1760_2 feat(es/minifier): Respect inline level and preserve native names (#8205) 2023-11-02 08:59:59 +09:00
issue_1964_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1964_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2207_1 feat(es/minifier): Evaluate more toFixed expressions (#8109) 2023-10-13 15:07:00 +09:00
issue_2207_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2207_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2231_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2231_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2231_3 feat(es/minfiier): Compute more with sequential inliner (#6169) 2022-10-27 00:50:52 +00:00
issue_2535_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2535_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2535_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2822 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2916_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2916_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2919 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2926_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2926_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2968 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
negative_zero test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
null_conditional_chain_eval refactor(es/ast): Reimplement optional chaining (#7441) 2023-06-12 06:47:40 +00:00
optional_expect_when_expect_stdout_present test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
or test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
positive_zero test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_mixed test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_sequence test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_sequence_with_constants_and_parens test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_sequence_with_parens test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_sequence_with_parens_evaluated test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_sequence_with_parens_exact test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_with_number_constants test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pow_with_right_side_evaluating_to_unary test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
prop_function test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
prototype_function test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
self_comparison_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
self_comparison_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
string_case test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
string_charCodeAt test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unary_prefix test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unsafe_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_array_bad_index test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_charAt test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_charAt_bad_index test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_charAt_noop test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unsafe_constant test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unsafe_float_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_float_key_complex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_integer_key test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_integer_key_complex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_object test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_object_accessor test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unsafe_object_complex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_object_nested test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_object_repeated test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_string test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_string_bad_index test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00