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
The transformer currently only supports Identifier-based function parameters, e.g.
function hello(a, b)
It doesn't support parameters made using things like array destructuring, object destructuring, rest operators, assignment patterns, etc. All of the following examples will throw errors:
Array destructuring
function ([a, b])
Object destructuring
function ({ a, b })
Rest operators
function (a, b, ...others)
Assignment/default parameters
function (a, b = 0)
function (a, b, c = a * b)
It would be nice to add support for these, however it's important to note that this will impact both the transformer and the application since:
for the transformer, we have to be able to parse and correctly record these parameters, and
for the app, we would have to change the argument form to correctly send the appropriate arguments to the function.
The text was updated successfully, but these errors were encountered:
The transformer currently only supports
Identifier
-based function parameters, e.g.It doesn't support parameters made using things like array destructuring, object destructuring, rest operators, assignment patterns, etc. All of the following examples will throw errors:
It would be nice to add support for these, however it's important to note that this will impact both the transformer and the application since:
The text was updated successfully, but these errors were encountered: