oxc/tasks
overlookmotel 5cf253c216 test(transformer/class-properties): more testing for assignment to super[prop] (#7992)
Amend test added in #7991 to test transform of `super[prop] = value` where `prop` is not bound.

We should ideally have the `_unbound` temp vars *inside* the arrow function rather than outside, as Babel does, but that's not possible with our double-visitor scheme at present, and I think current output will operate correctly anyway.

Probably these temp vars could be hoisted even higher up - to very top level of the file, even if the class and `super[prop]` were deeply nested in many functions - and it'd still be correct. That'd be good for transformer performance as less `var` statements to insert, and also slightly smaller output size - less `var`s in code. But I don't know if that would be worse for runtime performance, as it makes the arrow function more impure. 🤔
2024-12-18 12:49:42 +00:00
..
ast_tools refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
benchmark ci(benchmarks): simplify benchmarks (#7939) 2024-12-16 22:01:01 +08:00
common chore(doc): replace main/master to tag/commit to make the url always accessible (#7298) 2024-11-16 21:00:30 +08:00
compat_data refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
coverage refactor(semantic): simplify handling namespace stack (#7987) 2024-12-18 07:56:13 +00:00
javascript_globals feat(linter)!: sync sindresorhus/globals; removed Object.prototype properties from builtin and es* globals (#6991) 2024-10-29 04:13:20 +00:00
lint_rules refactor(tasks/lint_rules): detect typescript alias from mod.rs file (#7891) 2024-12-15 00:14:15 +08:00
minsize fix(minifier): incorrect minification in try_fold_left_child_op (#7949) 2024-12-17 10:40:22 +08:00
prettier_conformance feat(prettier): Complete print_literal (#7952) 2024-12-17 12:02:22 +08:00
rulegen feat(linter)!: remove unmaintained security plugin (#7773) 2024-12-10 14:29:22 +00:00
transform_checker refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
transform_conformance test(transformer/class-properties): more testing for assignment to super[prop] (#7992) 2024-12-18 12:49:42 +00:00
website docs(tasks/website): add legend for fixable column (#7945) 2024-12-17 10:25:11 +08:00