Files
test-repo/tests/format/js/discard-binding/array-pattern.js
T
fisker Cheungandautofix-ci[bot] 95ef24d1f0 Support "Discard Bindings" proposal (#17708)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-04 15:41:42 +08:00

37 lines
567 B
JavaScript

{
// destructuring binding
const [, void, ] = value;
}
{
// for-of destructuring binding
for (const [void] of []);
}
{
// destructuring assignment
[void] = [];
}
{
// for-of destructuring assignment;
for ([void] of []);
}
{
// function param;
function f([[[void], void, ], void]) {}
}
{
// arrow function param
([[[void], void, ], void]) => {}
}
{
// async arrow function param
async ([[[void], void, ], void]) => {}
}
{
// destructuring assignment in async call";
async([void] = []);
}
{
// catch param
try {} catch ([void]) {}
}