diff --git a/src/babel/transformation/transformers/es6/destructuring.js b/src/babel/transformation/transformers/es6/destructuring.js index 666f5382ae..5dd84da762 100644 --- a/src/babel/transformation/transformers/es6/destructuring.js +++ b/src/babel/transformation/transformers/es6/destructuring.js @@ -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,