mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
93a264c9a4
**Description:** The problem arises in L235 of swc_ecma_transforms_base/src/rename/mod.rs ```rs unit!(visit_mut_fn_decl, FnDecl, true); ``` which calls `get_map` and evals to ```rs node.visit_children_with(&mut v); ``` with `FnDecl` and `Analyzer` in L132. However, in `Analyzer`, a visit to raw function was not overloaded, so function arguments and function body are considered different scopes. **Related issue:** - Closes #7261. |
||
---|---|---|
.. | ||
input.js | ||
output.js |