Files
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
651 B
JavaScript

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