swc/crates/swc_ecma_minifier/tests
CPunisher 4436621564
fix(es/minifier): Check type of assignment target before merging assignments (#9617)
**Description:**

Collect types of vars, maybe other optimization could benefit from this:
`merged_var_type: Option<Value<Type>>`

When the variable is reassigned, the we merge the types with some simple
rules:
`None` + `None` = `None`
`None` + `Some(ty)` = `Some(ty)`
`Some(ty1)` + `Some(ty2)` if `ty1` == `ty2` = `Some(ty1)`
Otherwise = Unknown

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/8718
2024-10-14 09:55:53 +09:00
..
benches-full fix(es/minifier): Check variable type while optimizing += (#9575) 2024-09-20 16:43:53 +09:00
fixture fix(es/minifier): Check type of assignment target before merging assignments (#9617) 2024-10-14 09:55:53 +09:00
full fix(es/minifier): Check variable type while optimizing += (#9575) 2024-09-20 16:43:53 +09:00
mangle fix(es/minifier): Avoid decl name when mangle with eval (#9546) 2024-09-12 11:25:28 +09:00
pass-1 fix(es/minifier): Check variable type while optimizing += (#9575) 2024-09-20 16:43:53 +09:00
pass-default feat(es/minifier): Implement trivial optimizations (#6256) 2022-11-02 01:21:32 +00:00
projects fix(es/minifier): Check variable type while optimizing += (#9575) 2024-09-20 16:43:53 +09:00
terser/compress fix(es/minifier): Check variable type while optimizing += (#9575) 2024-09-20 16:43:53 +09:00
compress.rs feat(es/minifier): Support mangle cache (#9489) 2024-08-25 23:42:53 +00:00
eval.rs feat(allocator): Add maybe types (#9278) 2024-07-19 13:22:34 +09:00
exec.rs fix(es/minifier): Iterate object properties in reverse direction while inlining property access (#9507) 2024-08-29 15:58:18 +09:00
format.rs feat(es/minifier): Support mangle cache (#9489) 2024-08-25 23:42:53 +00:00
mangle.rs feat(es/minifier): Support mangle cache (#9489) 2024-08-25 23:42:53 +00:00
passing.txt fix(es/minifier): Fix compress pow NaN (#9210) 2024-07-12 21:06:57 +09:00
postponed.txt fix(es/minifier): Fix compress pow NaN (#9210) 2024-07-12 21:06:57 +09:00
terser_exec_base.js refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00
terser_exec.rs feat(es/minifier): Support mangle cache (#9489) 2024-08-25 23:42:53 +00:00
TODO.txt test(es/minifier): Update the passing terser test list (#8984) 2024-05-27 22:45:44 +09:00