oxc/tasks
Dunqing 47e69a8c94 fix(transformer-optional-catch-binding): the unused binding is not in the correct scope (#5066)
Blocked by #5008

In the SemanticBuilder, we insert all CatchClause parameters in the BlockStatement scope, a child-scope of CatchClause

858f510d59/crates/oxc_semantic/src/builder.rs (L709-L718)

So we should do the same thing in this plugin, but because CatchClause has no parameters, SemanticBuilder doesn't create scope for `CatchClause`. This cause we cannot find the `BlockStatement` scope_id.

This PR has changed to the correct logic. Just to wait #5008 solved
2024-08-23 13:02:53 +00:00
..
ast_tools refactor(ast_tools): remove support for #[scope(if(...))] attr (#5113) 2024-08-23 09:28:17 +00:00
benchmark chore(website): remove textlint annotation 2024-08-23 15:50:52 +08:00
common feat(coverage): check symbols and scopes after transformation (#4917) 2024-08-16 07:05:11 +00:00
coverage refactor(semantic)!: always create a scope for for statements (#5110) 2024-08-23 09:28:13 +00:00
javascript_globals chore: turn off doctest for all [[bin]] 2024-07-14 16:55:19 +08:00
lint_rules feat(docs): add tracking for plugins "promise" and "vitest" (#4668) 2024-08-05 19:01:44 -04:00
minsize feat(codegen)!: remove const generic MINIFY (#5001) 2024-08-20 08:13:27 +00:00
prettier_conformance refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
rulegen feat(rulegen): improve examples in documentation (#4815) 2024-08-10 18:48:59 -04:00
transform_conformance fix(transformer-optional-catch-binding): the unused binding is not in the correct scope (#5066) 2024-08-23 13:02:53 +00:00
website chore(website): remove textlint annotation 2024-08-23 15:50:52 +08:00