DescriptionImprove --destructure-named-params:
- Destructure named params that clash with JS reserved names:
`f({arguments = 1}) {}` becomes `function f({['arguments']: arguments$ = 1} = {}) {}`
- Use ES6 default params for positional & optional parameters
- Added simple tests
BUG=
R=jmesserly@google.com
Committed: https://github.com/dart-lang/dev_compiler/commit/ff88e54754e4a5c61cc93fe4d8eb2cee7b30319c
Patch Set 1 #
Total comments: 10
Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 10 (5 generated)
|