oxc/crates
overlookmotel c0576faf80 fix(transformer/class-properties): use UID for args in created class constructor (#7866)
When creating class constructor for a class which has super class, use UID `_args` for temp var (rather than `args`). This avoids shadowing a var called `args` used in an instance property initializer.

This diverges from Babel. Babel uses `args` unless it finds a var called `args` in an instance property initializer. But searching the AST of initializers can be fairly expensive, so it's better to skip it. The overrides for test fixtures included in this PR are just to account for that difference.
2024-12-14 04:18:48 +00:00
..
oxc release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_allocator release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_ast fix(cfg): include export default code in CFG instructions (#7862) 2024-12-14 12:09:28 +08:00
oxc_ast_macros release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_cfg release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_codegen perf(codegen): improve printing of statement comments (#7857) 2024-12-13 15:20:28 +00:00
oxc_data_structures release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_diagnostics release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_ecmascript release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_estree release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_isolated_declarations release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_language_server feat(editor): Create a command to apply all auto-fixes for the current active text editor (#7672) 2024-12-13 13:46:05 +08:00
oxc_linter refactor(linter): use Expression::is_super (#7850) 2024-12-13 14:47:31 +00:00
oxc_macros feat(linter)!: remove unmaintained security plugin (#7773) 2024-12-10 14:29:22 +00:00
oxc_mangler release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_minifier release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_napi release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_parser release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_prettier refactor(prettier): Align exported function names to Prettier (#7827) 2024-12-13 17:06:15 +08:00
oxc_regular_expression release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_semantic fix(cfg): include export default code in CFG instructions (#7862) 2024-12-14 12:09:28 +08:00
oxc_span release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_syntax refactor(semantic, syntax, wasm): remove #![allow(non_snake_case)] (#7863) 2024-12-14 01:52:32 +00:00
oxc_transformer fix(transformer/class-properties): use UID for args in created class constructor (#7866) 2024-12-14 04:18:48 +00:00
oxc_traverse release(crates): v0.41.0 (#7846) 2024-12-13 21:25:13 +08:00
oxc_wasm style(wasm): re-order imports (#7864) 2024-12-14 02:30:26 +00:00