Merge pull request #15768 from Snuffleupagus/issue-15767

Prevent the `debugger` from breaking on unbalanced save/restore OPS (issue 15767)
This commit is contained in:
Jonas Jenwald 2022-12-01 17:06:53 +01:00 committed by GitHub
commit 4793a0717f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));