* 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 <bng412@gmail.com> Co-authored-by: Brian Ng <bng412@gmail.com>
12 lines
280 B
JavaScript
12 lines
280 B
JavaScript
function f() {
|
|
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2;
|
|
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
|
|
return function (a) {
|
|
var _a = {
|
|
a: 4
|
|
},
|
|
a = _a.a;
|
|
return a + b;
|
|
}(a);
|
|
}
|