fix createLabel()

This commit is contained in:
alexlamsl 2017-04-21 19:38:05 +08:00
parent a7e607d34e
commit 5f9076de4a

View File

@ -361,10 +361,13 @@ function createLabel(canBreak, canContinue) {
canContinue = canContinue ? [ "" ] : [];
}
canContinue.push(label);
} else {
if (!canBreak) canBreak = CAN_BREAK;
if (!canContinue) canContinue = CAN_CONTINUE;
}
return {
break: CAN_BREAK && canBreak,
continue: CAN_CONTINUE && canContinue,
break: canBreak,
continue: canContinue,
target: label ? "L" + label + ": " : ""
};
}