diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index c132e8860a..3e21e4d7c8 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -320,6 +320,10 @@ t.toBlock = function (node, parent) { return node; } + if (t.isEmptyStatement(node)) { + node = []; + } + if (!Array.isArray(node)) { if (!t.isStatement(node)) { if (t.isFunction(parent)) {