perf: partially replace .concat with .push (#13609)

This commit is contained in:
Federico Ciardi
2021-08-14 16:57:06 +02:00
committed by GitHub
parent 6a651e4641
commit 10640b2aad
18 changed files with 93 additions and 74 deletions

View File

@@ -24,7 +24,7 @@ export default function transformWithoutHelper(loose, path, state) {
}
// push the rest of the original loop body onto our new body
block.body = block.body.concat(node.body.body);
block.body.push(...node.body.body);
t.inherits(loop, node);
t.inherits(loop.body, node.body);