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
Currently it is valid to have trailing comma in function declaration, but not in function call. However according to spec it should work in both cases.
Example javascript code to reproduce this:
functiona(a,b,c,// <- no error){console.log(params);}a(1,2,3,);// <- error: "missing ) after argument list"
This feature was discussed before in #403 and later implemented in PR #410 .
The text was updated successfully, but these errors were encountered:
olessavluk
changed the title
Allow trailing commas in function parameter lists
Allow trailing comma in function arguments
Sep 30, 2017
Currently it is valid to have trailing comma in function declaration, but not in function call. However according to spec it should work in both cases.
Example javascript code to reproduce this:
This feature was discussed before in #403 and later implemented in PR #410 .
The text was updated successfully, but these errors were encountered: