codesamplex

Sample

Handle res.sendFile synchronous TypeError on relative paths without root instead of relying on callback error delivery

sha256:049461217043c6d8c1c09f52eb8165128687f3ba42c2719d739ee74487cea915

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Handle res.sendFile synchronous TypeError on relative paths without root instead of relying on callback error delivery HOW
Packages
express 5.2.1
Environment
node
Created
2026-08-16T16:34:45Z

Commonly assumed

res.sendFile invokes its completion callback with an error when passed a relative path string

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts