mirror of
https://github.com/lexmount/moli.git
synced 2026-11-21 08:02:59 +00:00
Preserve the selected request body stream in Window and Worker fetch bindings. Reject with the original abort reason before synchronously canceling a readable upload, and handle the internal cancellation promise without replacing the fetch rejection or reading public Promise methods. Merge RequestInit bodies and inherited methods before validating the effective request. Nullish body overrides inherit the input body; invalid stream options and GET/HEAD bodies fail construction before cancellation. Remove the obsolete public then shim and its classified direct-call entry. Add regression coverage for cancellation timing, reason identity, source errors, body selection, reentry, validation and modified public intrinsics in Window, iframe and Worker contexts. Validation: fmt and strict workspace Clippy passed; nextest passed 17,962 tests with 13 skipped. All 12 pre-abort and 3 ordinary-upload CLI probe groups passed. The 83-case WPT selection gains two passing subtests with no regressions or new failures; whole-case counts remain 77 pass / 6 fail.