check for existence of node before checking it in let scoping
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user