You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: mask-arguments/pick-arguments leak extra stray arguments in the n-ary (6+) fallback #15921
Both mask-arguments and pick-arguments fall back to a generic loop (nary()) once you're selecting 6+ argument positions. That loop's bound is wrong; it uses arguments.length (how many args the wrapper happens to get called with) instead of idx.length (how many positions were actually selected). Call it with more arguments than positions selected, and it leaks extra stray undefineds through to the wrapped function. Existing tests missed it because the one test hitting this path always called with exactly as many arguments as positions selected, masking the bug.
changed the title [-]`mask-arguments`/`pick-arguments` leak extra stray arguments in the n-ary (6+) fallback[/-][+][BUG]: `mask-arguments`/`pick-arguments` leak extra stray arguments in the n-ary (6+) fallback[/+]on Oct 12, 2026
Activity
[-]`mask-arguments`/`pick-arguments` leak extra stray arguments in the n-ary (6+) fallback[/-][+][BUG]: `mask-arguments`/`pick-arguments` leak extra stray arguments in the n-ary (6+) fallback[/+]fix: ensure valid indexing of arguments array