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
sapphi-red
changed the title
function parameter tracking does not handle rest parameters correctly
function parameter tracking does not handle spread syntax in arguments correctly
Apr 30, 2024
Thanks, fix in #5503. According to ecma262, The spread element can only be in the first-level of function call to change arguments length, so the fix should be enough.
Rollup Version
4.17.1
Operating System (or Browser)
REPL
Node Version (if applicable)
No response
Link To Reproduction
https://rollupjs.org/repl/?version=4.17.1&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmZ1bmN0aW9uJTIwZm9vKGFyZzAlMkMlMjBhcmcxJTJDJTIwYXJnMiklMjAlN0IlNUNuJTIwJTIwaWYlMjAoYXJnMCklMjAlN0IlNUNuJTIwJTIwJTIwJTIwY29uc29sZS5sb2coJ2hhcyUyMGFyZzAnKSU1Q24lMjAlMjAlN0QlNUNuJTIwJTIwaWYlMjAoYXJnMSklMjAlN0IlNUNuJTIwJTIwJTIwJTIwY29uc29sZS5sb2coJ2hhcyUyMGFyZzEnKSU1Q24lMjAlMjAlN0QlNUNuJTdEJTVDbiU1Q25mb28oLi4uJTVCJ2FyZzAnJTJDJTIwJ2FyZzEnJTVEKSUyMiUyQyUyMmlzRW50cnklMjIlM0F0cnVlJTJDJTIybmFtZSUyMiUzQSUyMm1haW4uanMlMjIlN0QlNUQlMkMlMjJvcHRpb25zJTIyJTNBJTdCJTIyb3V0cHV0JTIyJTNBJTdCJTIyZm9ybWF0JTIyJTNBJTIyZXMlMjIlN0QlMkMlMjJ0cmVlc2hha2UlMjIlM0F0cnVlJTdEJTdE
Expected Behaviour
has arg0
andhas arg1
is output when running the built file.Actual Behaviour
Only
has arg0
is output when running the built file.The text was updated successfully, but these errors were encountered: