1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1 470 470 855 6 6 849 470 | exports.BlockStatement = exports.Program = { exit: function (node) { var unshift = []; node.body = node.body.filter(function (bodyNode) { if (bodyNode._blockHoist) { unshift.push(bodyNode); return false; } else { return true; } }); node.body = unshift.concat(node.body); } }; |