mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* refactor: iterate object rest elements only * refactor: use unshiftForXStatementBody * fix: handle object rest in array pattern * update tsconfig.json * improve typings * fix: declare uid identifiers when transforming array pattern within assignment
19 lines
269 B
JavaScript
19 lines
269 B
JavaScript
// ForXStatement
|
|
{
|
|
let a;
|
|
for (const [{...a}] of []) {}
|
|
for ([{...a}] of []) {}
|
|
async function f() {
|
|
for await ([{...a}] of []) {}
|
|
}
|
|
}
|
|
|
|
// skip
|
|
{
|
|
for ([...a] in {}) {}
|
|
for ([...a] of []) {}
|
|
async function a() {
|
|
for await ([...a] of []) {}
|
|
}
|
|
}
|