fix: plugin-transform-object-rest-spread param with default value
This commit is contained in:
committed by
Logan Smyth
parent
1ab58d6dae
commit
4a1965511f
@@ -4,6 +4,7 @@ function a3({a2, b2, ...c2}) {}
|
||||
function a4({a3, ...c3}, {a5, ...c5}) {}
|
||||
function a5({a3, b2: { ba1, ...ba2 }, ...c3}) {}
|
||||
function a6({a3, b2: { ba1, ...ba2 } }) {}
|
||||
function a7({a1 = 1, ...b1} = {}) {}
|
||||
// Unchanged
|
||||
function b(a) {}
|
||||
function b2(a, ...b) {}
|
||||
|
||||
@@ -24,6 +24,10 @@ function a6(_ref7) {
|
||||
let { a3, b2: { ba1 } } = _ref7;
|
||||
let ba2 = babelHelpers.objectWithoutProperties(_ref7.b2, ["ba1"]);
|
||||
}
|
||||
function a7(_ref8 = {}) {
|
||||
let { a1 = 1 } = _ref8;
|
||||
let b1 = babelHelpers.objectWithoutProperties(_ref8, ["a1"]);
|
||||
}
|
||||
// Unchanged
|
||||
function b(a) {}
|
||||
function b2(a, ...b) {}
|
||||
|
||||
Reference in New Issue
Block a user