mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Define default value for vars shadowing params * Remove from package.json * Only convert traverse the params if needed This prevents this plugin from running after the destructuring transform, which causes #11256 * Review * Review * Update packages/babel-plugin-transform-parameters/src/params.js [skip ci] Co-Authored-By: Brian Ng <[email protected]> Co-authored-by: Brian Ng <[email protected]>
7 lines
147 B
JavaScript
7 lines
147 B
JavaScript
function foo() {
|
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2;
|
|
return function (a) {
|
|
var a = 1;
|
|
}(a);
|
|
}
|