Skip to content

Conversation

@re-engineer
Copy link

This PR fixes #2 by applying the $argn_ syntax to BindingIdentifiers inside of ObjectBindings, ArrayBindings and BindingWithDefaults. n is based on the argument number of the ObjectBinding, etc., so this

(function ({x, y, z}, w) {})

would become this.

(function ({$arg0_lackingDude, $arg0_farTeapot, $arg0_mellowMode}, $arg1_eatableSaving) {})

It also fixes a typo in the README in which the object destructuring syntax of the import statement is omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object destructuring in function arguments causes an error

2 participants