refactor: remove legacy seams and consolidate resource ownership (#10349)

This commit is contained in:
morluto authored and GitHub committed 2026-11-13 04:45:16 -05:00
1 parent 5cddc69c51
commit bbe2bcc979
301 files changed
+3148 -2804

No files matched your search

@@ -1,15 +1,11 @@
import { expect, it } from "vitest";
import {
BUN_WORKER_RUNTIME_RESERVE_BYTES,
javaScriptWorkerMemoryLimitBytes,
} from "./JavaScriptWorkerMemoryLimit.js";
import { javaScriptWorkerMemoryLimitBytes } from "./JavaScriptWorkerMemoryLimit.js";
const MIB = 1024 * 1024;
const bun = { node: "24.3.0", bun: "1.4.2" };
const node = { node: "24.18.0" };
it("limits a Bun worker on Windows to its heap budget plus Bun's runtime reserve", () => {
expect(BUN_WORKER_RUNTIME_RESERVE_BYTES).toBe(512 * MIB);
expect(
javaScriptWorkerMemoryLimitBytes(192, { platform: "win32", versions: bun }),
).toBe(704 * MIB);