Follow-up to #66 after the native worker corpus promotion in e1523b1.
Reproduction on the pinned Bun corpus copy:
HOME_NATIVE_VM=1 HOME_CORPUS_FULL_VM=1 ./zig-out/bin/home-debug test --preload ./packages/runtime/test/bun-corpus/preload.ts ./packages/runtime/test/bun-corpus/js/node/worker_threads/worker_destruction.test.ts
Observed on Home native Debug:
Bun.connectworker-termination case passes.Bun.listenworker-termination case passes.- The
fetchworker-termination case does not complete; the process was manually interrupted after more than 60 seconds.
Keep the upstream test body and lifecycle semantics unchanged. Trace cancellation and teardown of an in-flight fetch when its Worker terminates, ensure the worker and parent event loops quiesce naturally, add direct lifecycle/destruction coverage, and then admit the unchanged complete file to the native corpus runner. A timeout, skip, method exclusion, or relaxed assertion is not completion.
The adjacent complete worker_threads.test.ts Debug deadline is separate: #482 documents that the original 100 MiB eval-source workload passes unchanged in ReleaseFast. This issue is specifically the fetch-on-destruction hang.