swc/crates/swc_ecma_minifier/tests/terser/compress/reduce_vars
Austaras 5dbbbea2ef
fix(es/minifier): Mark all function params as potential property mutation (#7409)
**Description:**

This issue is more severe than I originally thought. It raises not in
array indexing, but in function calls and property mutation. We should
treat all function arguments as potentially be property mutated,
otherwise following example

```js
class A {
	a = 1

	toString() {
		return this.a
	}
}

const a = new A()

function foo(x) {
	x.a++
}

const b = a + 1

foo(a)

console.log(b)
```

would be error(It should log 2, but logs 3 after compress).

As the result, massive regressions is unavoidable, since some of these
optimizations may indeed cause error. Part of them can be mitigated with
following optimization -- allow inline of ident even if its original
value is mutated. Consider

```js
export function foo(x) {
   const y = x
   x.a = 1
   y.b = 2
}
```

If x is a primitive value, all mutations to its properties are ignored;
if x is a object, then y refers to the same object no matter what
mutation is performed.

And there's still room for more, currently following code
```js
export function foo(x) {
    const y = Math.floor(x);
    g(y);
}
```
But I'd rather do it in a separate PR.


**Related issue:**

 - Closes #7402.
2023-05-18 01:19:17 +00:00
..
accessor_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
accessor_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_forin_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_forin_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_forof_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_forof_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
boolean_binary_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
booleans test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
catch_var test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
chained_assignments test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
cond_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_chain_call test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_chain_call_direct test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_chain_certain_and_uncertain_part test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_chain_certain_part test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_chain_prop test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
conditional_chain_prop_direct test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_nested_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_nested_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
conditional_nested_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
const_expr_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
const_expr_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
defun_assign test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_call test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_catch_1 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
defun_catch_2 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
defun_catch_3 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
defun_catch_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_catch_5 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_catch_6 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
defun_inline_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_inline_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_inline_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_label test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_redefine test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
defun_reference test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
defun_single_use_loop fix(es/minifier): Consider function body cost while inlining function (#5342) 2022-10-15 05:47:56 +00:00
defun_var_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
defun_var_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
defun_var_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
delay_def test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delay_def_lhs test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
do_while test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
double_reference test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
duplicate_lambda_defun_name_1 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
duplicate_lambda_defun_name_2 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
escape_await test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
escape_conditional test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
escape_expansion test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
escape_local_conditional test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
escape_local_sequence test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
escape_local_throw feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
escape_throw test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
escape_yield test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
escaped_prop_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
escaped_prop_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
escaped_prop_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
for_in_prop test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
func_arg_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
func_arg_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
func_inline test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
func_modified test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
iife test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
iife_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
iife_eval_1 fix(es/renamer): Don't use symbols used by declarations if eval exists (#7116) 2023-03-22 06:31:43 +00:00
iife_eval_2 fix(es/renamer): Don't use symbols used by declarations if eval exists (#7116) 2023-03-22 06:31:43 +00:00
iife_func_side_effects test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
iife_new test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
immutable test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
inner_var_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
inner_var_for_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
inner_var_for_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
inner_var_for_in_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
inner_var_for_in_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
inner_var_if test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
inner_var_label test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
inverted_var fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_294 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_308 test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
issue_369 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_379 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_432_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_432_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_443 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_581 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_581_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_639 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_741_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_741_reference_cycle test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1533_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1533_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1595_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1595_2 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1595_3 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1595_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1606 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1670_1 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1670_2 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1670_3 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1670_4 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1670_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1670_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1814_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1814_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1850_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1850_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1850_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1850_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1865 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1922_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1922_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2090_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2090_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2406_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2406_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2416 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2420_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2420_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2420_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2423_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2423_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2423_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2423_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2423_5 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2423_6 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2436 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2440_eval_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2440_eval_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2440_with_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2440_with_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2442 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2449 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2450_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2450_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2450_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2450_4 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
issue_2450_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2455 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2485 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2496 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2598 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2669 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_2670 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2757_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2757_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2774 test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
issue_2799_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2799_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2836 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2860_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2860_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2869 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2916 feat(es/minifier): Drop vars from sequential inliner (#5993) 2022-09-30 09:43:31 +00:00
issue_2919 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2992 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_3042_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3042_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3068_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3068_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3110_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3110_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3110_3 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_3113_1 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_3113_2 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_3113_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3113_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3113_5 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
issue_3125 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3140_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3140_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3140_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3140_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3140_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
lvalues_def_1 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
lvalues_def_2 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
method_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
method_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
modified test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
multi_def_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
multi_def_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
multi_def_3 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
named_function_with_recursive_ref_reuse feat(es/minifier): Inline pure array literal partially (#6099) 2022-10-12 02:29:40 +00:00
obj_arg_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
obj_arg_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
obj_for_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
obj_for_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
obj_var_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
obj_var_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
passes test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
perf_1 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
perf_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
perf_5 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
perf_7 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
pure_getters_1 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
pure_getters_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
pure_getters_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
recursive_inlining_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
recursive_inlining_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
recursive_inlining_3 test(es/minifier): Enable more terser tests (#7396) 2023-05-16 03:21:08 +00:00
recursive_inlining_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
recursive_inlining_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
redefine_arguments_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
redefine_arguments_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
redefine_arguments_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
redefine_farg_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
redefine_farg_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
redefine_farg_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
reduce_class_with_side_effects_in_extends test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_class_with_side_effects_in_properties test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_funcs_in_array_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_funcs_in_array_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_funcs_in_object_literal_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_funcs_in_object_literal_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
reduce_vars fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
regex_loop test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
side_effects_assign test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
single_use_class_referenced_in_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
single_use_class_referenced_in_object_literal test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
toplevel_off test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
toplevel_off_loops_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
toplevel_off_loops_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
toplevel_off_loops_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
toplevel_on test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
toplevel_on_loops_1 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
toplevel_on_loops_2 feat(es/minifier): Inline function calls in more cases (#6010) 2022-10-01 18:18:45 +09:00
toplevel_on_loops_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
try_abort feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
unary_delete test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unsafe_evaluate test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_array_1 fix(es/minifier): Mark all function params as potential property mutation (#7409) 2023-05-18 01:19:17 +00:00
unsafe_evaluate_array_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_array_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_array_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_array_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_escaped test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_modified test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_object_1 fix(es/minifier): Mark all function params as potential property mutation (#7409) 2023-05-18 01:19:17 +00:00
unsafe_evaluate_object_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_object_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_side_effect_free_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_side_effect_free_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_evaluate_unknown test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_modified test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
use_before_var test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
var_assign_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
var_assign_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
var_assign_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
var_assign_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
var_assign_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
var_assign_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
var_if test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
variables_collision_in_immediately_invoked_func test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00