* Remove buildDefaultParamAssign This seems to have been [added](https://github.com/babel/babel/commit/4b85b05839017ab2abc03ba2d1 e875a63f002890) in v5.5.4 to address [#1690](https://phabricator.babeljs.io/T1690). It [became “dead”](https://github.com/babel/babel/blob/v6.0.0/packages/babel-core/t est/fixtures/transformation/es6.parameters/default-before-last/expected. js) (as far as I can tell) in the [v6.0.0 commit](https://github.com/babel/babel/commit/ae7d5367f1c3d438667242d692 5db024f875fccd). Either way, this code is never executed. - `pushDefNode` is only called when the param is a default param. - `buildDefaultParamAssign` (which is inside `pushDefNode`) only runs of the param index is less than or equals to the lastNonDefaultParam. AKA, is this param before any non-defaulting params. Which is a contradiction. * Small optimization No need to check if we need an iife if we already know we need one.
The compiler for writing next generation JavaScript.
Looking for support?
For questions and support please visit the discussion forum, Slack community, or StackOverflow.
Want to report a bug or request a feature?
Bugs and feature requests should be posted at phabricator.babeljs.io.
You can directly translate a github issue to phabricator; just add a T to the beginning of the issue.
https://phabricator.babeljs.io/T2168
corresponds to
https://github.com/babel/babel/issues/2168
Want to report an issue with babeljs.io?
For documentation and website issues please visit the babel.github.io repo.
Description
Languages
JavaScript
99.5%
Makefile
0.3%
HTML
0.1%