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