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
Rest arguement is mishandled when controlFlowFlattening is enabled #920
So, seems we can always suppose that if we have a rest argument in the start/middle of call arguments then in the function parameters this argument will always be used as the last parameter.
function bar(a, b, ...args) { // rest always as the last argument
foo(a, b, ...args, 7)
}
bar(1, 2, ...[3, 4, 5], 6); // rest at the start or middle
Activity
sanex3339 commentedon May 23, 2021
Hi. Will try to fix it today.
sanex3339 commentedon May 23, 2021
So, seems we can always suppose that if we have a rest argument in the start/middle of call arguments then in the function parameters this argument will always be used as the last parameter.
Fixed invalid code generation for start/middle rest arguments when `c…
sanex3339 commentedon May 23, 2021
PR:
#921
sanex3339 commentedon May 23, 2021
Released as
2.13.0, please try it.