Prevent the debugger from breaking on unbalanced save/restore OPS (issue 15767)

This commit is contained in:
Jonas Jenwald 2022-12-01 15:43:17 +01:00
parent fa54a58790
commit 0cf4e6620d

View File

@ -364,7 +364,7 @@ const Stepper = (function StepperClosure() {
table.classList.add("showText");
decArgs.append(table);
table.append(charCodeRow, fontCharRow, unicodeRow);
} else if (fn === "restore") {
} else if (fn === "restore" && this.indentLevel > 0) {
this.indentLevel--;
}
line.append(c("td", " ".repeat(this.indentLevel * 2) + fn));