feat(codemode): expand destructuring support (#37342)

This commit is contained in:
Aiden Cline
2026-07-16 12:57:37 -05:00
committed by GitHub
parent 72af084dc1
commit c764732aea
3 changed files with 120 additions and 43 deletions
+3 -3
View File
@@ -54,9 +54,9 @@ ultimate source of truth.
loop headers, so reads before initialization and self- or cross-referential initializers observe the JavaScript
temporal dead zone.
- [ ] Hoist function declarations accepted directly in switch cases.
- [ ] Computed object destructuring keys such as `const { [field]: value } = record`.
- [ ] Object destructuring from arrays, such as `const { length } = values`.
- [ ] Array destructuring from supported non-array iterables: strings, Maps, Sets, and URLSearchParams.
- [x] Computed object destructuring keys such as `const { [field]: value } = record`.
- [x] Object destructuring from arrays, such as `const { length } = values`.
- [x] Array destructuring from supported non-array iterables: strings, Maps, Sets, and URLSearchParams.
## Statements and control flow