Merge pull request #19961 from nicolo-ribaudo/debugger-contructPath-op

Show the op dispatched by constructPath in the debugger
This commit is contained in:
Jonas Jenwald 2025-05-23 13:15:55 +02:00 committed by GitHub
commit a8e05d82e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,6 +374,14 @@ class Stepper {
table.classList.add("showText");
decArgs.append(table);
table.append(charCodeRow, fontCharRow, unicodeRow);
} else if (fn === "constructPath") {
const [op, [path], minMax] = args;
decArgs = this.#c("td");
decArgs.append(JSON.stringify(this.#simplifyArgs(path)));
decArgs.append(this.#c("br"));
decArgs.append(`minMax: ${JSON.stringify(this.#simplifyArgs(minMax))}`);
decArgs.append(this.#c("br"));
decArgs.append(`${opMap[op]}`);
} else if (fn === "restore" && this.indentLevel > 0) {
this.indentLevel--;
}