diff --git a/lib/6to5/transformation/transformers/let-scoping.js b/lib/6to5/transformation/transformers/let-scoping.js index 7998e9e362..6741207e7e 100644 --- a/lib/6to5/transformation/transformers/let-scoping.js +++ b/lib/6to5/transformation/transformers/let-scoping.js @@ -260,7 +260,7 @@ LetScoping.prototype.checkFor = function () { return false; } - if (forParent && !node.label) { + if (forParent && node && !node.label) { if (t.isBreakStatement(node)) { has.hasBreak = true; replace = t.returnStatement(t.literal("break"));