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

@@ -133,10 +133,15 @@ it("shares one in-flight JavaScript worker shutdown between callers", async () =
await openCliScope();
const first = closeCliJavaScriptResources();
const second = closeCliJavaScriptResources();
expect(second).toBe(first);
let secondSettled = false;
void second.then(() => {
secondSettled = true;
});
await Promise.resolve();
expect(secondSettled).toBe(false);
expect(calls).toBe(1);
release();
await first;
await Promise.all([first, second]);
expect(calls).toBe(1);
} finally {
release();