inherit destructuring param replacement ref from original param - fixes #1461
This commit is contained in:
parent
31a4195c81
commit
fc8540d88a
@ -63,6 +63,7 @@ exports.Function = function (node, parent, scope, file) {
|
||||
|
||||
hasDestructuring = true;
|
||||
var ref = scope.generateUidIdentifier("ref");
|
||||
t.inherits(ref, pattern);
|
||||
|
||||
var destructuring = new DestructuringTransformer({
|
||||
blockHoist: node.params.length - i,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user