remove unnecessary ensureBlock in es6 rest parameters transformer
This commit is contained in:
@@ -12,8 +12,6 @@ exports.Function = function (node, parent, scope) {
|
||||
|
||||
var rest = node.params.pop().argument;
|
||||
|
||||
t.ensureBlock(node);
|
||||
|
||||
var argsId = t.identifier("arguments");
|
||||
|
||||
// otherwise `arguments` will be remapped in arrow functions
|
||||
|
||||
Reference in New Issue
Block a user