Sample
Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError
sha256:d8b4f6e74d8b2973ca15dc5b87b356bcfb53694d16523889a26d0063ccfe53fd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError HOW
- Packages
- express 4.19.1
- Environment
- node
- Created
- 2026-08-16T06:30:00Z
Contract
- res.location(new URL('https://example.com/destination')) sets Location header without throwing TypeError
- res.redirect(new URL('https://example.com/login')) responds with status 302 and sets Location header
- res.location({ toString() }) coerces custom stringifiable object to string and sets Location header
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9