fix(browser): report Windows HAR heap exhaustion (#1147)

Recognize exit code 134 without a signal when the HAR decoder reports
V8 heap exhaustion. Preserve the observed termination in the memory
failure and cover Windows, POSIX, and unrelated decoder failures.
This commit is contained in:
Andrew Barnes
2026-10-09 09:13:00 +08:00
committed by GitHub
parent 441813c070
commit 13935077ba
3 changed files with 85 additions and 3 deletions
@@ -70,7 +70,8 @@ it("reports real HAR heap exhaustion through CLI and MCP and preserves server us
resource: "memory",
reported_limits: {
old_generation_heap_mib: 192,
observed_signal: "SIGABRT",
observed_exit_code: process.platform === "win32" ? 134 : null,
observed_signal: process.platform === "win32" ? null : "SIGABRT",
},
captured_output: {
stderr: expect.stringContaining("heap out of memory"),