remove unnecessary ensureBlock in es6 rest parameters transformer

This commit is contained in:
Sebastian McKenzie 2015-01-29 00:06:42 +11:00
parent d72081f82c
commit c25c33e3ee

View File

@ -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