improve 6to5-node and fix register hook
This commit is contained in:
@@ -16,7 +16,7 @@ exports.ForStatement = function (node) {
|
||||
};
|
||||
|
||||
_.each(node.body, function (child) {
|
||||
if (child.type === "VariableDeclaration" && child.kind === "const") {
|
||||
if (child && child.type === "VariableDeclaration" && child.kind === "const") {
|
||||
_.each(child.declarations, function (declar) {
|
||||
var name = declar.id.name;
|
||||
check(declar, name);
|
||||
|
||||
Reference in New Issue
Block a user