* 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>
8 lines
167 B
JavaScript
8 lines
167 B
JavaScript
function test(a) {
|
|
let b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
return function (a) {
|
|
var a = a + b;
|
|
return a;
|
|
}(a);
|
|
}
|